SOAP Protocol

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.

  1. Envelope
  2. Header
  3. Body
  4. Fault

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.

soap-message-over-http-request

soap-message-over-http-request

sample-soap-request-message

sample-soap-request-message

Below image shows actual SOAP response message.

sample-soap-response-message

sample-soap-response-message

 

You may also like...