Monday, June 15, 2015

Call Custom Salesforce Services from Oracle SOA Suite


In this exercise we will create a custom web service using apex classes in Salesforce, expose them as web service and call them from SOa

In order to create a APEX class login to Saleforce.com
Go to Setup Develop APEX classes
Click on New





Write a simple APEX class which just return a string “HelloWorld” as output.


global class DemoClass {
webService static string Method()
{ return 'HelloWorld' ; }
}


Paste the same code in the newly generated APEX class window.
Specify the name as DemoClass, paste the code and save the content.




Once the code is saved you will get an option to generate a wsdl file for this APEX class.
Click on generate WSDL and save the wsdl file to call this service.




Save the WSDL file



Now the complex part is over.

Create a BPEL process and use the enterprise WSDL to get the session id.

Using the session id call the custom WSDL that you have generate so far and get the response


2 comments:

Rose Maria said...

How will your market come to trust that you have the answers?
<a href="http://www.appshark.com/salesforce-services/>salesforce services in Dallas</a>

Jade Global said...

I really enjoyed while reading your article and it is good to know the latest updates. Do post more. Please also read my topics about:

Salesforce cpq transformation
Salesforce integration services
Salesforce service cloud integration
salesforce optimization