Salesforce web service invocation

vinodp_only4u.yahoo.co.uk's picture
Hi All, I have a requirement to hit the salesforce web service. Earlier we used to generates the stubs from WSDL by using axis2 WSDL2java utility. First we login by passing login credentials.SFDC returns service url for further calls. This process we used to do this in plain java client. My question is, How to achieve this in WSO2 ESB? Thanks, Vinod
indika's picture

Hi You may do following 1)

Hi You may do following 1) Using callout mediator call the web service passing login credentials 2) Using a custom mediator, parse the response and take the service URL and set it as the 'To' in the synapse message context. 3) Generates a new request and use the send mediator. callout -> custom mediator -> send mediator. If you do not want to use callout mediator , then you can use message chaining[1]. Please have a look at [2] Thanks Indika [1] http://esbmagic.blogspot.com/2009/02/chaining-messages-with-apache-synapse.html [2] http://wso2.org/forum/thread/8804
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)