Using jca salesforce adapter with soa suite
-
Upload
tushar-varshney -
Category
Technology
-
view
45 -
download
2
Transcript of Using jca salesforce adapter with soa suite
![Page 1: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/1.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 1/10
Using JCA Salesforce Adapter with SOA SuitePosted on May 25, 2014
Oracle Cloud Adapter for Salesforce.com is certified only with SOA Suite 11.1.1.7. This JCA adapter can bedownload from https://edelivery.oracle.com/.The prerequisite is to install:
Oracle Cloud Adapter for Salesforce (p17897781_111170_Generic.zip and p17996952_111170_Generic.zip)Latest Opatch version Where Can I Find the Latest Version of Opatch?
Once, your environment is setup, it is easy to build a BPEL process and use the Oracle Cloud Adapter forSalesforce. Before bouncing your weblogic server, apply the following steps in order to avoid certificate issueduring runtime:
add public certificate from Salesforce.com in your cacert file of your weblogic serverdeactivate host name verifier in weblogic
The BPEL process
Let’s build a simple request/reply BPEL process to create an Account based on name provided from BPELprocess. I have tested the creation from Salesforce Web site and we just need to provide an account name to getthe record created in Salesforce.
The composite.xml looks like this:
Knowledge comes from experience and continuous practical hands-on …A history record of my professionalthoughts at a moment in time.Disclaimer: The views expressed on thisblog are my own and do not necessarilyreflect the views of Salesforce.
![Page 2: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/2.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 2/10
The BPEL process just invoke the JCA adaptor and call teh synchronous create operation exposed by Salesforce.
Oracel SOA suite provided an easy and understable JCA Adator to connect to Salesforce.com platform. Let’s seethis throught the Cloud’s JCA wizzard:
Oracle Cloud Adapter for Salesforce.com – Wizard – Step1
![Page 3: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/3.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 3/10
Oracle Cloud Adapter for Salesforce.com – Wizard – Step2
Oracle Cloud Adapter for Salesforce.com – Wizard – Step3
![Page 4: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/4.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 4/10
Oracle Cloud Adapter for Salesforce.com – Wizzard – Step31
Oracle Cloud Adapter for Salesforce.com – Wizard – Step32
![Page 5: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/5.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 5/10
Oracle Cloud Adapter for Salesforce.com – Wizzard – Step41
Oracle Cloud Adapter for Salesforce.com – Wizzard – Step42
![Page 6: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/6.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 6/10
Oracle Cloud Adapter for Salesforce.com – Wizzard – Step43
Oracle Cloud Adapter for Salesforce.com – Wizzard – Step5
![Page 7: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/7.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 7/10
Oracle Cloud Adapter for Salesforce.com – Wizzard – Step6
Before testing the Business Process, you need to define in EM console the csfmap and csfkey needed by the JCAAdaptor
123456789
1011121314151617181920
<adapter‐config name="Service_SFDC_CreateAccountPortType" adapter="Salesforce" wsdlLocation <connection‐factory location="cloud/CloudAdapter"> <non‐managed‐connection managedConnectionFactoryClassName="oracle.cloud.connector.salesforce.SalesforceConnectionFactory" <property name="targetWSDLURL" value="enterprise.wsdl"/> <property name="csfkey" value="MyCSF_SFDC_KEY"/> <property name="csfMap" value="SOA"/> <property name="applicationVersion" value="30.0"/> </non‐managed‐connection> </connection‐factory> <endpoint‐interaction portType="Service_SFDC_CreateAccountPortType" operation="create" <interaction‐spec className="oracle.tip.adapter.cloud.CloudInteractionSpec"> <property name="targetOperation" value="create"/> <property name="operationPath" value=""/> <property name="oracle.cloud.rt.sfdcAdapterNamespace" value="http://xmlns.oracle.com/pcbpel/adapter/salesforce/ApplicationSFDC/soaSFDCWF/Service_SFDC_CreateAccount <property name="selectedObjects" value="Account"/> <property name="AllOrNoneHeader.allOrNone" value="true"/> <property name="oracle.cloud.rt.suppressResponse" value="false"/> </interaction‐spec> </endpoint‐interaction></adapter‐config>
![Page 8: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/8.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 8/10
Connect to the EM console, and configure security credentials used by your JCA adaptor
Now, your are ready to test the BPEL process and validate that it is working as expected:
![Page 9: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/9.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 9/10
By connecting to Salesforce, we can validate that the account has been created successfull, and check that sessiondid not increase for each call.
![Page 10: Using jca salesforce adapter with soa suite](https://reader031.fdocuments.us/reader031/viewer/2022030115/589d0fbc1a28ab61128b484f/html5/thumbnails/10.jpg)
9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical handson …
https://chendamok.wordpress.com/2014/05/25/usingjcasalesforceadapterwithsoasuite/ 10/10
About Chenda Mok
19 years of hands on experience in software design and development with emphasis on Enterprise Application Integration (EAI),Services Oriented Architecture (SOA) and Identity Management (IDM) solutions. I’m a software engineer, member of theprofessional service delivery team working for Salesforce. Prior to this, I worked for Oracle as Solution Architect, throughSeeBeyond(06/2005), then SUN’s acquisition (04/2009). After my master’s degree in computer science in 1997; I alwaysdelivered consulting on architecture, design, implementation on integration’s field. I’m interested in architecture usingEAI/SOA/IDM/BPM/Cloud technologies, software development and Java’s related technologies. I may blog about mywork/activities at Salesforce, but I do not speak for my employer, past, present or future.View all posts by Chenda Mok →
Thanks for reading !
Share this:
Twitter Facebook Google
This entry was posted in bpel, SOA Suite and tagged bpel, Oracle Cloud Adapter for Salesforce.com, salesforce, sfdc. Bookmark the permalink.
Knowledge comes from experience and continuous practical handson …
Like
Be the first to like this.
Related
SOA/BPEL publishing to a remote JMSqueue using JMSAdapter
Developer's Guide for Oracle SOA Suite Developer's Guide for Oracle SOA Suite 11gRelease 1 (11.1.1)
In "bpel"In "11.1.1.4.x"
In "11.1.1.4.x"
Blog at WordPress.com.