4.4 Stream Sample
The following is an example of the messages that are exchanged in a stream. For brevity, the HTTP 1.1 200 acknowledgments are not included.
-
POST /msmq/private$/tsimpleq HTTP/1.1 Host: machine2 Content-Type: multipart/related; boundary="MSMQ - SOAP boundary, 1672"; type=text/xml Content-Length: 1750 SOAPAction: "MSMQMessage" Proxy-Accept: NonInteractiveClient --MSMQ - SOAP boundary, 1672 Content-Type: text/xml; charset=UTF-8 Content-Length: 1465 <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:mqsender label</action> <to>http://machine2/msmq/private$/tsimpleq</to> <id>uuid:1@00000000-0000-0000-0000-000000000008</id> </path> <properties se:mustUnderstand="1"> <expiresAt>20070620T165959</expiresAt> <sentAt>20070619T165959</sentAt> </properties> <Stream se:mustUnderstand="1"> <streamId>uid:2744e4e1-2b48-43e8-b441-42745f280d53\4839986701558349830</streamId> <current>1</current> <start> <sendReceiptsTo> http://machine1/MSMQ/private$/receipts<b>SenderStream=XRntV</b> </sendReceiptsTo> <expiresAt>20070620T165959</expiresAt> </start> <streamReceiptRequest/> </Stream> <Msmq xmlns="msmq.namespace.xml"> <Class>0</Class> <Priority>0</Priority> <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation> <App>0</App> <BodyType>0</BodyType> <HashAlgorithm>32772</HashAlgorithm> <SourceQmGuid>dc1cd9a6-8130-4504-88d2-851707fe4632</SourceQmGuid> <TTrq>20070620T165959</TTrq> </Msmq> </se:Header> <se:Body></se:Body> </se:Envelope>--MSMQ - SOAP boundary, 1672 Content-Type: application/octet-stream Content-Length: 13 Content-Id: body@ff3af301-3196-497a-a918-72147c871a13 First Message--MSMQ - SOAP boundary, 1672--
The following is the stream receipt message (ordering ACK) acknowledging the first message.
-
POST /msmq/private$/receipts?senderstream=xrntv HTTP/1.1 Host: machine1 Content-Type: text/xml Content-Length: 993 SOAPAction: "MSMQMessage" Proxy-Accept: NonInteractiveClient <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:QM Ordering Ack</action> <to>http://machine1/MSMQ/private$/receipts?SenderStream=XRntV</to> <rev> <via>http://machine2/msmq/private$/tsimpleq</via> </rev> <id>uuid:26641@32221eda-9376-46df-b6ed-783091123831</id> </path> <properties se:mustUnderstand="1"> <expiresAt>20380119T031407</expiresAt> <sentAt>20070619T165958</sentAt> </properties> <streamReceipt> <streamId>uid:2744e4e1-2b48-43e8-b441-42745f280d53\4839986701558349830</streamId> <lastOrdinal>1</lastOrdinal> </streamReceipt> <Msmq xmlns="msmq.namespace.xml"> <Class>255</Class> <Priority>0</Priority> <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation> <App>0</App> <BodyType>0</BodyType> <HashAlgorithm>0</HashAlgorithm> <SourceQmGuid>32221eda-9376-46df-b6ed-783091123831</SourceQmGuid> <TTrq>20070623T165958</TTrq> </Msmq> </se:Header> <se:Body></se:Body> </se:Envelope>
The following is the second message in the stream.
-
POST /msmq/private$/tsimpleq HTTP/1.1 Host: machine2 Content-Type: multipart/related; boundary="MSMQ - SOAP boundary, 1672"; type=text/xml Content-Length: 1500 SOAPAction: "MSMQMessage" Proxy-Accept: NonInteractiveClient --MSMQ - SOAP boundary, 1672 Content-Type: text/xml; charset=UTF-8 Content-Length: 1220 <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:mqsender label</action> <to>http://machine2/msmq/private$/tsimpleq</to> <id>uuid:1@00000000-0000-0000-0000-000000000008</id> </path> <properties se:mustUnderstand="1"> <expiresAt>20070620T170000</expiresAt> <sentAt>20070619T170000</sentAt> </properties> <Stream se:mustUnderstand="1"> <streamId>uid:2744e4e1-2b48-43e8-b441-42745f280d53\4839986701558349830</streamId> <current>2</current> </Stream> <Msmq xmlns="msmq.namespace.xml"> <Class>0</Class> <Priority>0</Priority> <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation> <App>0</App> <BodyType>0</BodyType> <HashAlgorithm>32772</HashAlgorithm> <SourceQmGuid>6a74a825-57b2-43e5-9d34-f1d8b2b8950a</SourceQmGuid> <TTrq>20070620T170000</TTrq> </Msmq> </se:Header> <se:Body></se:Body> </se:Envelope>--MSMQ - SOAP boundary, 1672 Content-Type: application/octet-stream Content-Length: 9 Content-Id: body@ff3af301-3196-497a-a918-72147c871a13 Message 0--MSMQ - SOAP boundary, 1672--
The following is the stream receipt message (ordering ACK) acknowledging the second message.
-
POST /msmq/private$/receipts?senderstream=xrntv HTTP/1.1 Host: machine1 Content-Type: text/xml Content-Length: 993 SOAPAction: "MSMQMessage" Proxy-Accept: NonInteractiveClient <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:QM Ordering Ack</action> <to>http://machine1/MSMQ/private$/receipts?SenderStream=XRntV</to> <rev> <via>http://machine2/msmq/private$/tsimpleq</via> </rev> <id>uuid:26643@32221eda-9376-46df-b6ed-783091123831</id> </path> <properties se:mustUnderstand="1"> <expiresAt>20380119T031407</expiresAt> <sentAt>20070619T165959</sentAt> </properties> <streamReceipt> <streamId>uid:2744e4e1-2b48-43e8-b441-42745f280d53\4839986701558349830</streamId> <lastOrdinal>2</lastOrdinal> </streamReceipt> <Msmq xmlns="msmq.namespace.xml"> <Class>255</Class> <Priority>0</Priority> <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation> <App>0</App> <BodyType>0</BodyType> <HashAlgorithm>0</HashAlgorithm> <SourceQmGuid>32221eda-9376-46df-b6ed-783091123831</SourceQmGuid> <TTrq>20070623T165959</TTrq> </Msmq> </se:Header> <se:Body></se:Body> </se:Envelope>
The following is the third message in the stream.
-
POST /msmq/private$/tsimpleq HTTP/1.1 Host: machine2 Content-Type: multipart/related; boundary="MSMQ - SOAP boundary, 1672"; type=text/xml Content-Length: 1524 SOAPAction: "MSMQMessage" Proxy-Accept: NonInteractiveClient --MSMQ - SOAP boundary, 1672 Content-Type: text/xml; charset=UTF-8 Content-Length: 1240 <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:mqsender label</action> <to>http://machine2/msmq/private$/tsimpleq</to> <id>uuid:1@00000000-0000-0000-0000-000000000008</id> </path> <properties se:mustUnderstand="1"> <expiresAt>20070620T170001</expiresAt> <sentAt>20070619T170001</sentAt> </properties> <Stream se:mustUnderstand="1"> <streamId>uid:2744e4e1-2b48-43e8-b441-42745f280d53\4839986701558349830</streamId> <current>3</current> <end/> </Stream> <Msmq xmlns="msmq.namespace.xml"> <Class>0</Class> <Priority>0</Priority> <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation> <App>0</App> <BodyType>0</BodyType> <HashAlgorithm>32772</HashAlgorithm> <SourceQmGuid>f306d4c7-be95-419a-9e3b-8c751d04b1e9</SourceQmGuid> <TTrq>20070620T170001</TTrq> </Msmq> </se:Header> <se:Body></se:Body> </se:Envelope>--MSMQ - SOAP boundary, 1672 Content-Type: application/octet-stream Content-Length: 12 Content-Id: body@ff3af301-3196-497a-a918-72147c871a13 Last Message--MSMQ - SOAP boundary, 1672--
The following is the stream receipt message (ordering ACK) acknowledging the third and last message.
-
POST /msmq/private$/receipts?senderstream=xrntv HTTP/1.1 Host: machine1 Content-Type: text/xml Content-Length: 993 SOAPAction: "MSMQMessage" Proxy-Accept: NonInteractiveClient <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:QM Ordering Ack</action> <to>http://machine1/MSMQ/private$/receipts?SenderStream=XRntV</to> <rev> <via>http://machine2/msmq/private$/tsimpleq</via> </rev> <id>uuid:26645@32221eda-9376-46df-b6ed-783091123831</id> </path> <properties se:mustUnderstand="1"> <expiresAt>20380119T031407</expiresAt> <sentAt>20070619T170001</sentAt> </properties> <streamReceipt> <streamId>uid:2744e4e1-2b48-43e8-b441-42745f280d53\4839986701558349830</streamId> <lastOrdinal>3</lastOrdinal> </streamReceipt> <Msmq xmlns="msmq.namespace.xml"> <Class>255</Class> <Priority>0</Priority> <Correlation>AAAAAAAAAAAAAAAAAAAAAAAAAAA=</Correlation> <App>0</App> <BodyType>0</BodyType> <HashAlgorithm>0</HashAlgorithm> <SourceQmGuid>32221eda-9376-46df-b6ed-783091123831</SourceQmGuid> <TTrq>20070623T170001</TTrq> </Msmq> </se:Header> <se:Body></se:Body> </se:Envelope>