Share via


1.3.12 SRMP Example Message

The following is a typical SRMP message that illustrates the basic message structure. At the top is the HTTP POST request. This is followed by the MIME content type information. The SOAP 1.1 message begins after the SOAP boundary data.

In the SOAP message, the SOAP <Envelope> element is the top-level element, immediately followed by the SOAP <Header> and <Body> elements. The <Body> element is empty and ignored by SRMP. Any user messages to be transferred to the receiving application are attached in the form of multipart MIME attachments.

In the <Header> element, the WS-Routing <Path> element is used for addressing the message and specifying the destination queue and the ID of the sending QM. This is followed by the SRMP <Properties> elements, such as <expiresAt>, followed by MSMQ-specific elements, such as <Priority>.

 POST /msmq/private$/simpleq HTTP/1.1
 Host: machine2
 Content-Type: multipart/related; boundary="MSMQ - SOAP boundary, 26500"; 
 type=text/xml
 Content-Length: 1273
 SOAPAction: "MSMQMessage"
 Proxy-Accept: NonInteractiveClient
  
 --MSMQ - SOAP boundary, 26500
 Content-Type: text/xml; charset=UTF-8
 Content-Length: 775
  
 <se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/" 
 xmlns="http://schemas.xmlsoap.org/srmp/">
  <se:Header>
    <path xmlns="http://schemas.xmlsoap.org/rp/" se:mustUnderstand="1">
      <action>MSMQ:</action>
      <to>http://machine2/msmq/private$/simpleQ</to>
      <id>uuid:20503@caf195ea-615c-4264-ae08-11a4e60194c0</id>
    </path>
    <properties se:mustUnderstand="1">
      <expiresAt>20380119T031407</expiresAt>
      <sentAt>20070719T031140</sentAt>
    </properties>
    <Msmq xmlns="msmq.namespace.xml">
      <Class>0</Class>
      <Priority>3</Priority>
      <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation>
      <App>0</App>
      <BodyType>0</BodyType>
      <HashAlgorithm>32772</HashAlgorithm>
      <SourceQmGuid>caf195ea-615c-4264-ae08-11a4e60194c0</SourceQmGuid>
      <TTrq>20070723T031140</TTrq>
    </Msmq>
  </se:Header>
 <se:Body></se:Body>
 </se:Envelope>--MSMQ - SOAP boundary, 26500
 Content-Type: application/octet-stream
 Content-Length: 223
 Content-Id: body@caf195ea-615c-4264-ae08-11a4e60194c0