4.2.3 Close and Terminate the Sequences

The RMS completes the exchange by sending a [WSRM1-1] CloseSequence message, ending the sequence provided by the RMD (line 19) and acknowledging all the responses received (lines 6-10) as final (line 9).

 1     <?xml version="1.0" encoding="utf-8"?>
 2     <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
 3                 xmlns:r="http://docs.oasis-open.org/ws-
                         rx/wsrm/200702" 
 4                 xmlns:a="http://www.w3.org/2005/08/addressing">
 5         <s:Header>
 6              <r:SequenceAcknowledgement>
 7                 <r:Identifier>urn:uuid:533a5de9-b2a8-41dd-b587-
                        704e104eb350</r:Identifier>
 8                 <r:AcknowledgementRange Lower="1" Upper="2">
                   </r:AcknowledgementRange>
 9                 <r:Final></r:Final>
 10             </r:SequenceAcknowledgement>
 11             <a:Action s:mustUnderstand="1">
 12                     http://docs.oasis-open.org/ws-
                        rx/wsrm/200702/CloseSequence
 13             </a:Action>
 14             <a:MessageID>urn:uuid:fb74ba73-ac42-4780-bc88-
                        0de5a8c5f27f</a:MessageID>
 15             <a:To s:mustUnderstand="1">http://localhost/RMD</a:To>
 16         </s:Header>
 17         <s:Body>
 18             <r:CloseSequence>
 19                 <r:Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                        0e3f1b1542f6</r:Identifier>
 20                 <r:LastMsgNumber>2</r:LastMsgNumber>
 21             </r:CloseSequence>
 22         </s:Body>
 23    </s:Envelope>

The RMD responds with a CloseSequenceResponse message, ending the sequence provided by the RMS (line 18) and acknowledging all the requests (lines 6-11) as final (line 9).

 1     <?xml version="1.0" encoding="utf-8"?>
 2     <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
 3                 xmlns:r="http://docs.oasis-open.org/ws-
                        rx/wsrm/200702" 
 4                 xmlns:a="http://www.w3.org/2005/08/addressing">
 5          <s:Header>
 6              <r:SequenceAcknowledgement>
 7                 <r:Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                        0e3f1b1542f6</r:Identifier>
 8                 <r:AcknowledgementRange Lower="1" Upper="2">
                   </r:AcknowledgementRange>
 9                 <r:Final></r:Final>
 10             </r:SequenceAcknowledgement>
 11             <a:Action s:mustUnderstand="1">
 12                     http://docs.oasis-open.org/ws-
                        rx/wsrm/200702/CloseSequenceResponse
 13             </a:Action>
 14             <a:RelatesTo>urn:uuid:fb74ba73-ac42-4780-bc88-
                        0de5a8c5f27f</a:RelatesTo>
 15         </s:Header>
 16         <s:Body>
 17             <r:CloseSequenceResponse>
 18                 <r:Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                        0e3f1b1542f6</r:Identifier>
 19             </r:CloseSequenceResponse>
 20         </s:Body>
 21     </s:Envelope>
  

The RMS sends a [WSRM1-1] TerminateSequence message, terminating the sequence provided by the RMD (line 19) and acknowledging all the responses received (lines 6-10).

 1     <?xml version="1.0" encoding="utf-8"?>
 2     <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
 3                 xmlns:r="http://docs.oasis-open.org/ws-
                         rx/wsrm/200702" 
 4                 xmlns:a="http://www.w3.org/2005/08/addressing">
 5         < s:Header>
 6              <r:SequenceAcknowledgement>
 7                 <r:Identifier>urn:uuid:533a5de9-b2a8-41dd-b587-
                         704e104eb350</r:Identifier>
 8                 <r:AcknowledgementRange Lower="1" Upper="2">
                   </r:AcknowledgementRange>
 9                 <r:Final></r:Final>
 10             </r:SequenceAcknowledgement>
 11             <a:Action s:mustUnderstand="1">
 12                      http://docs.oasis-open.org/ws-
                         rx/wsrm/200702/TerminateSequence
 13             </a:Action>
 14             <a:MessageID>urn:uuid:03e0dbb1-1508-4af7-83ee-
                         5d63725c7a4a</a:MessageID>
 15             <a:To s:mustUnderstand="1">http://localhost/RMD</a:To>
 16         </s:Header>
 17         <s:Body>
 18             <r:TerminateSequence>
 19                <r:Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                         0e3f1b1542f6</r:Identifier>
 20                <r:LastMsgNumber>2</r:LastMsgNumber>
 21             </r:TerminateSequence>
 22         </s:Body>
 23     </s:Envelope>
  

The RMD responds by sending a [WSRM1-1] TerminateSequenceResponse message, terminating the sequence provided by the RMS (line 18) and acknowledging all the requests received (lines 6-10).

 1     <?xml version="1.0" encoding="utf-8"?>
 2     <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
 3                 xmlns:r="http://docs.oasis-open.org/ws-
                         rx/wsrm/200702" 
 4                 xmlns:a="http://www.w3.org/2005/08/addressing">
 5         <s:Header>
 6             <r:SequenceAcknowledgement>
 7                 <r:Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                         0e3f1b1542f6</r:Identifier>
 8                 <r:AcknowledgementRange Lower="1" Upper="2">
                   </r:AcknowledgementRange>
 9                 <r:Final></r:Final>
 10             </r:SequenceAcknowledgement>
 11             <a:Action s:mustUnderstand="1">
 12                      http://docs.oasis-open.org/ws-
                         rx/wsrm/200702/TerminateSequenceResponse
 13             </a:Action>
 14             <a:RelatesTo>urn:uuid:03e0dbb1-1508-4af7-83ee-
                         5d63725c7a4a</a:RelatesTo>
 15         </s:Header>
 16         <s:Body>
 17             <r:TerminateSequenceResponse>
 18                 <r:Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                         0e3f1b1542f6</r:Identifier>
 19             </r:TerminateSequenceResponse>
 20         </s:Body>
 21     </s:Envelope>