...

Networking - SOAP

Back to Course

Lesson Description


Lession - #1365 SOAP Message


SOAP MESSAGES


A SOAP message is an ordinary XML document containing the following elements −
  • Envolop - Defines the start and the end of the message. It is a mandatory element.
  • Header - Contains any optional attributes of the message used in processing the message, either at an intermediary point or at the ultimate end-point. It is an optional element.
  • Body - Contains the XML data comprising the message being sent. It is a mandatory element.
  • Fault - An optional Fault element that provides information about errors that occur while processing the message.

SOAP Message Structure


                                    
<?xml version = "1.0"?>
<SOAP-ENV:Envelope> 
   SOAP-ENV:encodingStyle>

   <SOAP-ENV:Header>
      ...
      ...
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
      ...
      ...
      <SOAP-ENV:Fault>
         ...
         ...
      </SOAP-ENV:Fault>
      ...
   </SOAP-ENV:Body>
</SOAP_ENV:Envelope>