What is SOAP?
Simple Object Access Protocol, it is an XML-based communication architecture that allows different platforms and languages to communicate through HTTP requests.
SOAP services explain the ways to interact with them via WSDL - Web Service Description Language, a language based on XML
What is Allowlisting?
Before we can make any request to an external site (doesn’t matter the kind of service), we need to allowlist it in our org.
- Setup > Security > Remote SIte Settings
and then click on New Remote Site
- Give the URL of the site, give it an alias,
and click Save
- Once this is completed, we’re able to
make an external callout to the service
Mock Classes
Test.setMock() method
- Lets the system know which mock we're using - Takes 2 parameters - First is the type of interface our mock implements(WebServiceMock.class when we’re testing SOAP callouts). - Second is the instance of class that implements this interface
Salesforce SOAP API
RESTful Services
Salesforce REST API
OOB Salesforce APIs