Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

4 Protocol Examples

Messages may have no relation to the underlying transport connection. By inserting the PacketRoutable element into the SOAP header, packet routing would be used instead of circuit routing to deliver the message. Treating the message as a packet enables optimizations such as coalescing messages together or load balancing across multiple back ends to improve reliability, scalability, and performance. The following is an example of a SOAP message that contains the PacketRoutable element in the SOAP header.

 <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
  xmlns:a="http://www.w3.org/2005/08/addressing">
     <s:Header>
         <PacketRoutable 
              xmlns="http://schemas.microsoft.com/ws/2005/05/routing">
         </PacketRoutable>
         <a:Action s:mustUnderstand="1">
              http://tempuri.org/IService/MyOperation
         </a:Action>
         <ActivityId CorrelationId="592d7dfd-aafe-4df8-adfc-003db32efc7
 c" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostic
 s">9df08e0a-a956-46d9-a859-d6571139ff0f
         </ActivityId>
         <a:To s:mustUnderstand="1">http://localhost:8080/service1
         </a:To>
     </s:Header>
     <s:Body>
         <MyOperation xmlns="http://tempuri.org/">
             <myValue>Some Value</myValue>
         </MyOperation>
     </s:Body>
 </s:Envelope>
Show:
© 2016 Microsoft