2.2.5.6 streamReceipt Element
The SRMP <streamReceipt> element MAY be present as a child element of the <se:Header> element. The stream receipt element is generated by the receiver QM and sent to the sender QM. The sender QM processes this element as a notification to delete acknowledged messages (see section 3.1.5.1.9.1) and also for performing negative journaling (see section 3.1.1.3.3). If present:
The SRMP <streamId> element MUST be present as a child element of the <streamReceipt> element, as the following example shows. It MUST also contain the same StreamID as the <streamId> element in the <stream> element of the original stream message received (see section 2.2.5.3.1).
The SRMP <lastOrdinal> element MUST be present as a child element of the <streamReceipt> element. It MUST contain a number of type xs:unsignedLong that is identical to the <current> element of the last stream message received. By sending this stream receipt, the receiver acknowledges receipt of all messages in the stream up to and including the message whose <current> number is identical to the <lastOrdinal> element.
<streamReceipt> <streamId>uid:4a85b192-3ccd-4ba2-a0ac-7f0a11be1b08\4839986701558349830</streamId> <lastOrdinal>2</lastOrdinal> </streamReceipt>