4.2.1 Establish the Sequences

The RMS emits a new sequence identifier and sends it to the RMD on a CreateSequence message that includes an Offer element (lines 16-24). The CreateSequence message indicates the RMS is anonymous by using the [reply endpoint] addressing property (an empty projection of the [reply endpoint] information property implies an anonymous reply endpoint as specified in [WSASB]) and by using the anonymous address in the Endpoint element of the Offer element (lines 18-20). The CreateSequence message carries an anonymous address in the AcksTo Endpoint (lines 13-15).

 1     <?xml version="1.0" encoding="utf-8"?>
 2     <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
 3                 xmlns:a="http://www.w3.org/2005/08/addressing">
 4         <s:Header>
 5             <a:Action s:mustUnderstand="1">
 6                  http://docs.oasis-open.org/ws-rx/wsrm/200702
                    /CreateSequence
 7             </a:Action>
 8             <a:MessageID>urn:uuid:c961f2ab-a5f5-4450-9c57-5e54471ac
                   24d</a:MessageID>
 9             <a:To s:mustUnderstand="1">http://localhost/RMD</a:To>
 10         </s:Header>
 11         <s:Body>
 12            <CreateSequence xmlns="http://docs.oasis-open.org
                       /ws-rx/wsrm/200702">
 13                 <AcksTo>
 14                    <a:Address>http://www.w3.org/2005/08/addressing
                       /anonymous</a:Address>
 15                 </AcksTo>
 16                 <Offer>
 17                     <Identifier>urn:uuid:533a5de9-b2a8-41dd-b587-
                             704e104eb350</Identifier>
 18                     <Endpoint>
 19                          <a:Address>http://www.w3.org/2005/08
                             /addressing/anonymous</a:Address>
 20                     </Endpoint>
 21                     <IncompleteSequenceBehavior>
 22                          DiscardFollowingFirstGap
 23                     </IncompleteSequenceBehavior>
 24                 </Offer>
 25             </CreateSequence>
 26         </s:Body>
 27     </s:Envelope>
  

The RMD responds by emitting a new sequence identifier and sending it to the RMS on a CreateSequenceResponse message (line 13). The CreateSequenceResponse message indicates acceptance of the offered sequence (lines 17-21).

 1     <?xml version="1.0" encoding="utf-8"?>
 2     <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
 3                 xmlns:a="http://www.w3.org/2005/08/addressing"
 4                 xmlns:r="http://docs.oasis-open.org/ws-rx/wsrm
                     /200702">
 5         <s:Header>
 6             <a:Action s:mustUnderstand="1">
 7                 http://docs.oasis-open.org/ws-rx/wsrm/200702
                   /CreateSequenceResponse
 8             </a:Action>
 9             <a:RelatesTo>urn:uuid:c961f2ab-a5f5-4450-9c57-
                   5e54471ac24d</a:RelatesTo>
 10         </s:Header>
 11         <s:Body>
 12             <r:CreateSequenceResponse>
 13                <Identifier>urn:uuid:74a45cb6-6ddb-40cf-ae30-
                       0e3f1b1542f6</Identifier>
 14                <IncompleteSequenceBehavior>
 15                    DiscardFollowingFirstGap
 16                </IncompleteSequenceBehavior>
 17                <Accept>
 18                    <AcksTo>
 19                        <a:Address>http://localhost/RMD</a:Address>
 20                    </AcksTo>
 21                </Accept>
 22             </r:CreateSequenceResponse>
 23         </s:Body>
 24     </s:Envelope>