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

Hot Topic
Hot
Topic

Google Gadgets are a nice way to develop user interfaces for distributed services. The fact that they can be hosted anywhere over a network, not necessarily in the very portal server they eventually run in makes them re-usable and allows users to quickly...

Latest Webinar
In this webinar we'll share the range of concerns we've heard from the industry, and survey some of the new and sometimes subtle types of lock-in associated with cloud technologies.
Wednesday, 8 September, 10.00 AM (PDT)