function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Natasha AliNatasha Ali 

Practical examples of consuming SOAP API in Salesforce

Hi,
I'm trying to create a connection between our Org and a third party system through the SOAP API. Are there any practical examples of this? (I've done the trailheads but they haven't given many practical examples).

I need a button to call the third-party web services through SOAP API, search and retrieve results then populate fields on the salesforce record the button is clicked from.

Can anyone show working practical code which I can amend for us?

Any help is much appreciated!
Many thanks,
Natasha :)
MKRMKR
Hi,

I suggest that you check this module on Trailhead. It provides you with really hands-on examples about the SOAP API usage.

https://trailhead.salesforce.com/en/content/learn/modules/api_basics/api_basics_soap

If you are using the Java connector, you can find an example code here:

https://github.com/forcedotcom/wsc/blob/master/README.md

Regards,
MKR