Using jca salesforce adapter with soa suite

10
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 Suite Posted on May 25, 2014 Oracle Cloud Adapter for Salesforce.com is certified only with SOA Suite 11.1.1.7. This JCA adapter can be download 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 for Salesforce. Before bouncing your weblogic server, apply the following steps in order to avoid certificate issue during runtime: add public certificate from Salesforce.com in your cacert file of your weblogic server deactivate 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 BPEL process. I have tested the creation from Salesforce Web site and we just need to provide an account name to get the record created in Salesforce. The composite.xml looks like this: Knowledge comes from experience and continuous practical hands-on … A history record of my professional thoughts at a moment in time. Disclaimer: The views expressed on this blog are my own and do not necessarily reflect the views of Salesforce.

Transcript of Using jca salesforce adapter with soa suite

Page 1: Using jca salesforce adapter with soa suite

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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 pre­requisite 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 serverde­activate 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

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 4/10

Oracle Cloud Adapter for Salesforce.com – Wizzard – Step3­1

Oracle Cloud Adapter for Salesforce.com – Wizard – Step3­2

Page 5: Using jca salesforce adapter with soa suite

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 5/10

Oracle Cloud Adapter for Salesforce.com – Wizzard – Step4­1

Oracle Cloud Adapter for Salesforce.com – Wizzard – Step4­2

Page 6: Using jca salesforce adapter with soa suite

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 6/10

Oracle Cloud Adapter for Salesforce.com – Wizzard – Step4­3

Oracle Cloud Adapter for Salesforce.com – Wizzard – Step5

Page 7: Using jca salesforce adapter with soa suite

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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

9/22/2016 Using JCA Salesforce Adapter with SOA Suite | Knowledge comes from experience and continuous practical hands­on …

https://chendamok.wordpress.com/2014/05/25/using­jca­salesforce­adapter­with­soa­suite/ 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 hands­on …

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.