A SOAP message is a well-formed XML document that contains an XML declaration followed by the primary elements. A SOAP message contains three primary elements:

  • Envelope
  • Header
  • Body

The code example displays the basic structure of a SOAP message.