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:
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
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:
- MUST be encoded using XML
- MUST use the SOAP Encoding namespace
- NOT contain a DTD (Document Type Definition) reference
- 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