Powered By Blogger

Monday, December 9, 2013

OSB Business Service with JCA

Configuring OSB services to work with JCA protocol is easy, but I would like to post one error I faced when I generated OSB business service with FTP JCA file

Eclipse and OSB console gives a way to generate OSB services from JCA file.
If it is from OSB console, import JCA file and its dependency artifacts,go to resource browser,select JCA bindings from left side menu and click on actions icon from required JCA file on right side page
If it is from Eclipse,import JCA file and its dependency artifacts, right click on it, select Oracle service bus then select generate service.

With above steps you can generate business service.We use Jdeveloper to model adapter interface and use generated files to design OSB service.
Jdeveloper creates abstract wsdl but OSB requires concrete WSDL.When we generate OSB service either from Eclipse or console it will generate concrete WSDL by adding binding and service elements to newly generated WSDL and import abstract WSDL in it for abstract definitions.

If you choose  to add concrete definitions(bindings and service) to WSDL manually and trying to use that WSDL in service definition then that works fine for proxy service but business service fails with below error

An error occured while validating JCA transport endpoint properties, exception: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: Please specify a Service. Choices are: {{http://xmlns.oracle.com/pcbpel/adapter/ftp/CRM61OM/Project1/putFTP}putFTP, {http://xmlns.oracle.com/pcbpel/adapter/ftp/CRM61OM/Project1/putFTP}putFTP_ep} oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException:

I could not figure out why business service fails and proxy generation is fine but it could be resolved by generating service automatically either from eclipse or console



No comments:

Post a Comment