Links

SOAP

SOAP is a simple and extensible schema(or format) of XML information exchange over HTTP, it is used for communication between applications. SOAP stands for Simple Object Access Protocol.
A SOAP XML should have an Envelope (that is root element of a SOAP message), Header, Body and Fault element that identifies the document is SOAP message.



According to SOAP standards, XML documents should follow rules like:
  1. MUST be encoded using XML
  2. MUST use the SOAP Encoding namespace
  3. NOT contain a DTD (Document Type Definition) reference
  4. NOT contain XML Processing Instructions

A basic SOAP XML looks like:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> 
<soap:Header>
  ...
</soap:Header>
<soap:Body>
  ...  
  <soap:Fault>   
    ...  
  </soap:Fault>
</soap:Body>
</soap:Envelope>


HTTP Headers for a SOAP request:
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

Post a Comment