Sunday, April 11, 2010

SOAP messages patterns

a useful collection of SOAP message patterns:

http://www.w3.org/TR/xmlp-scenarios/

a message for all seasons....


Especially interesting:

http://www.w3.org/TR/xmlp-scenarios/#S807


TrackingHeader with Via Intermediary with Timestamp 
(excellent for troubleshooting and performance monitoring!)
 
<t:TrackingHeader xmlns:t="http://example.org/2001/06/tracking">
      <t:Via>
        <t:Intermediary>soap://A.com/some/endpoint</t:Intermediary>
        <t:Timestamp>2001-03-09T08:00:00Z</t:Timestamp>
      </t:Via>
 
 
 
and the response correlated to the messageId
 <n:MsgHeader xmlns:n="http://example.org/requestresponse">
      <n:MessageId>uuid:09233523-567b-2891-b623-9dke28yod7m9</n:MessageId>
      <n:ResponseTo>uuid:09233523-345b-4351-b623-5dsf35sgs5d6</n:ResponseTo>

  </n:MsgHeader>

No comments: