Soap Part 3
Simeon Simeonov
XML 1-6

Listing  1
Message from partner A to BigCorp.'s partner gateway application
POST /PartnerGateway HTTP/1.1
Host: www.bigcorp.com
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>
       <td:TargetDepartment
 
xmlns:td="http://schemas.bigcorp.com/soap/partnergateway"
         SOAP-ENV:actor="http://schemas.bigcorp.com/soap/actor/partnergateway"
         SOAP-ENV:mustUnderstand="1">
           Billing
       </td:TargetDepartment>
       <ai:AuthenticationInformation
         xmlns:ai="http://schemas.security.org/soap/security"
         SOAP-ENV:actor="http://schemas.bigcorp.com/soap/actor/partnergateway"
         SOAP-ENV:mustUnderstand="1">
           <Username>PartnerA</Username>
           <Password>LongLiveSOAP</Password>
       </ai:AuthenticationInformation>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
       ...
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
 

Listing  2
Message from gateway application to the billing department
POST /Billing HTTP/1.1
Host: billing.bigcorp.com
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>
       <cc:ClientCredentials
 
xmlns:cc="http://schemas.security.org/soap/security"
         SOAP-ENV:mustUnderstand="1">
           <ClientID>/External/Partners/PartnerA</ClientID>
       </cc:ClientCredentials>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
       ...
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
 

Listing  3
Authentication failure message response
HTTP/1.1 500 Internal Server Error
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:Body>
       <SOAP-ENV:Fault>
           <faultcode>SOAP-ENV:Client.AuthenticationFailure</faultcode>
           <faultstring>Failed to authenticate client</faultstring>
           <faultactor>http://schemas.bigcorp.com/soap/actor/partnergateway </faultactor>
       </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>