Messaging Styles: Document
  • SOAP supports document and RPC messaging styles. In a document-style SOAP message:
    • The transaction between applications is through XML documents.
    • The request-response form of communication is followed, which is asynchronous in nature.

In the code example, the Body element encloses a document named LibraryStock.

<?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>
    <LibraryStock symbol="Books"/>
  </Body>

</Envelope>
Click the Next button to continue.