You need to sign in to do that
Don't have an account?

How to call an external webservice api from apex through HTTP Call outs
Hi,
This is kumar, I’m new to salesforce. I need to call an external application from Apex through HTTP Call outs. Could any one send me the sample code, how to parse and call (invoke) external application(wsdl). Any help must be appreciated .
Thanks inadvance!
Kumar
Here's one example from the cookbook (using Docusign's WSDL).
hope this will help you
To access the external webservice in salesforce is not complex task. First you need to parse your wsdl and create stub classes from wsdl.
For that goto--> setup--> AppSetup---> Develope--> classes--> click on 'Generate from wsdl' button.
From here you can parse your wsdl and create stub classes in apex. Now using these classes you can make callout to external webservice. For more information go through the below link:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex.htm
http://wiki.developerforce.com/index.php/Apex_Web_Services_and_Callouts