SOAP stands for Simple Object Access Protocol. SOAP is used to exchange the XML messages between different types of systems over application protocols like HTTP, FTP etc.
A typical SOAP message consists of below parts.
Here is the sample SOAP request and response. We are using web service provider at url – “https://www.webservicex.net/country.asmx?WSDL”. Don’t worry about WSDL right now. You will learn the purpose of WSDL in next chapter.
Note that SOAP request is as good as HTTP Post request with content-type as “application/soap+xml;action=<EndPointOfWebService>” followed by actual SOAP message in XML format.
Below image shows actual SOAP response message.