Jan 6, 2015

SOA 12c JCA transport migration error of OSB project

When an OSB 11g project using the JCA transport is imported to JDeveloper 12c, you might see the following error.
oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: Please specify a Service. Choices are:
This is one of the known issues in the project migration. You need to manually edit certain files to resolve this error. Here are the steps to resolve this issue.
1. Edit the WSDL associated with Business Service
Open the project in JDeveloper 12c and go to the Business Service. You will find the name of the WSDL under the General Configuration. In the following example, you can see the name of the wsdl is WritePubEasyProductUploadFile.wsdl
JCA01
2. Change the namespace
Change the targetNameSpace, wpefile and the import namespace to http://xmlns.oracle.com/pcbpel/adapter
JCA02
Open the Abstract WSDL. You can find the name of the Abstract WSDL in the location attribute of the WSDL import tag. In the above screenshot you can see that the Abstract WSDL is WritePubEasyProductUploadFile_Abstract.wsdl. Open this abstract WSDL and edit the targetNamespace and the wpefile attributes in the WSDL definition tag tohttp://xmlns.oracle.com/pcbpel/adapter. Remove the xmlns:jca=http://xmlns.oracle.com/pcbpel/wsdl/jca/ line.
JCA03
3. Edit the Business Service
Open the Business service in notepad. In this example, WritePubEasyProductUploadFile.bix and change the namespace tohttp://xmlns.oracle.com/pcbpel/adapter
JCA04
4. Refresh the Application
Refresh the application or close and reopen the project. If it does not work, click on the Business Service and refresh it. Now, the error associated with the JCA will be resolved.
JCA05

No comments:

Post a Comment