Tuesday, June 14, 2016

Oracle SOA BPEL Ant Script for composite svn checkout, weblogic build and deploy

Oracle SOA BPEL Ant Script for composite svn checkout,  weblogic build and deploy

1. Below command is used to checkout the source from svn
call "C:\Program Files\TortoiseSVN\bin\svn.exe"  checkout <SVN Path>  "C:\Oracle\SOA\" --non-interactive --no-auth-cache --username <svn user name> --password <svn password>

2. Below command will build composite jar file from the source code.
In below command, composite name is assume as "SOAComposite"

call C:\sw\apache-ant-1.9.6-bin\apache-ant-1.9.6\bin\ant -f C:\Oracle\Middleware\Oracle_Home\soa\bin\ant-sca-package.xml  -DcompositeDir=C:\Oracle\SOA\SOAComposite\SOA -DcompositeName=SOAComposite -Drevision=1.0  -Dsca.application.home=C:\Oracle\SOA\SOAComposite

3. Below command is used to deploy the jar in weblogic
/apache/ant/apache-ant-1.9.6/bin/ant -f /oracle/products/oracle_home/soa/bin/ant-sca-deploy.xml -v -DserverURL=http://<IP>:<Port> -DsarLocation=<Full Path of Composite Jar file>-Doverwrite=true  -Duser=<Weblogic User Name> -Dpassword=<Weblogic Password>  -DforceDefault=true  -Dpartition=default

You can have all three commands in a shell script or batch files.

Oracle SOA Adaptor Log Diagnostic

Below option provide some clue to diagnose the issue while using the adapters like righnow

1.] Go to your Enterprise Manager console;
2.] On the Target Navigation on the left side of the screen, locate SOA > your soa server;
3.] Right click on the SOA server;
4.] Go to Logs > Log Configuration;
5.] In the Log Configuration page, do a search on Oracle.SOA.adapter;
6.] Expand the first node and locate the rightnow adapter;
7.] In the Oracle Diagnostic Logging Level, select TRACE:32 (FINEST);
8.] Click Apply;
9.] Do a test in your composite to reproduce the issue; and
10.] Immediately upload the Diagnostic Log file of the SOA server located at DOMAIN_NAME/SERVERS/SERVER_NAME/LOGS/*.log; 

Wednesday, March 2, 2016

Oracle SOA BPEL Schema changes not reflecting

Ti include a new schema we should import it in wsdl and include it in BPEL. If we do some modification in schema sometime we may not see the changes while assign or transformation. In that scenario just close all the open files in JDeveloper and reopen it to resolve this JDeveloper issue.

Exception is thrown because the to-spec at line 261 is evaluated to be empty

Problem: Exception is thrown because the to-spec at line 261 is evaluated to be empty


In Oracle SOA BPEL Assign statement when you come across this error

Open assign activity, right click on copy operation select "ignore missing from data" and  "insert missing to data"

Root cause: Target schema is having no element with the name may be because it's minOccurs="0"
                                             


Friday, February 19, 2016

Oracle SOA BPEL Pass Credential to external service

To pass the credential to the service we can use oracle.webservices.auth.username  property in reference of the composite.xml

Below is the example to connect to planisware service.


<reference name="Planisware" ui:wsdlLocation="Planisware_WSDL_New.wsdl">
    <interface.wsdl interface="http://www.planisware.com/SOAP/SampleDoc#wsdl.interface"/>
    <binding.ws port="http://www.planisware.com/SOAP/SampleDoc#wsdl.endpoint)"
                location="Planisware_WSDL_New.wsdl" soapVersion="1.1">
      <property name="weblogic.wsee.wsat.transaction.flowOption"
                type="xs:string" many="false">NEVER</property>
            <property name="oracle.webservices.auth.username" type="xs:string"
                many="false" override="may">UserName</property>
      <property name="oracle.webservices.auth.password" type="xs:string"
                many="false" override="may">Password</property>                
    </binding.ws>
  </reference>