XML in Transit: SOAP Part 2
Vol. 1 Issue 5, p19
Listing 1

A SOAP message example
POST /LookupCentral HTTP/1.1
Host: www.lookupcentralserver.com
Content-Type: text/xml; charset="utf-8"
Content-Length: nnnn
SOAPAction: "Some-URI"

<SOAP-ENV:Envelope
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
   <SOAP-ENV:Header>
       <a:AuthorizationLevel>
           xmlns:a="some-URI">
               <ReallyVeryHigh/>
       </a:AuthorizationLevel>
       <t:Transaction
           xmlns:t="some-URI"
           SOAP-ENV:mustUnderstand="1">
               12345
       </t:Transaction>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
       <m:LookupPerson
         xmlns:m="Some-URI">
           <FirstName>Big<FirstName>
           <LastName>Boss</LastName>
       </m:LookupPerson>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
 
 

Listing 2
A SOAP message response example
HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Content-Length: nnnn

<SOAP-ENV:Envelope
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
   <SOAP-ENV:Header>
       <t:Transaction
           xmlns:t="some-URI"
           SOAP-ENV:mustUnderstand="1">
               12345
       </t:Transaction>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
       <m:LookupPersonResponse
         xmlns:m="Some-URI">
           <FirstName>Big</FirstName>
           <MiddleName>Bad</MiddleName>
           <LastName>Boss</LastName>
           <Company>UberSoft Corporation</Company>
           <Position>CEO</Position>
           <Salary>
               <Currency>USD</Currency>
               <Amount>10000000</Amount>
           </Salary>
       </m:LookupPersonResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>