The Envelope Element
  • The Envelope element is mandatory and is the root element.
  • The Envelope element must always be associated with the http://www.w3.org/2001/12/soap-envelope namespaceURI.
  • The syntax for namespace is:

xmlns:prefix=”namespaceURI

where the namespace declaration begins with xmlns. The prefix is any value defined by a user, while the namespaceURI is always http://www.w3.org/2001/12/soap-envelope, as indicated in the code example.

<?xml version="1.0"?>

<Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" encodingStyle="http://www.w3.org/2001/12/soap-encoding">

  <Header>
    ...
    ...
  </Header>

  <Body>
    ...
    ...
    <Fault>
      ...
      ...
    </Fault>
  </Body>

</Envelope>

Click the Next button to continue.