3.5.5.2.1 Receiving an XATMUSER_MTAG_RMOPENOK Message
When the XA Resource Manager Bridge receives an XATMUSER_MTAG_RMOPENOK message (section 2.2.3.2.6), it MUST perform the following actions:
If the State of the Connection is set to Awaiting Open Response:
Set the Resource Manager Global Identifier field of the XA Resource Manager Proxy object referenced by receiving Connection to the guidRm field of the message.
Set the State field of the receiving Connection to Active.
Create a new GUID.
Attempt to create a new Resource Manager object as defined in [MS-DTCO] section 3.5 using the newly created GUID as the Session Identifier.
If successful:
Set the Resource Manager field of the XA Resource Manager Proxy object to the newly created Resource Manager object.
Return success to the Register One-Pipe XA Resource Manager event (section 3.5.4.4).
Otherwise:
Return failure to the Register One-Pipe XA Resource Manager event.
Otherwise, the message MUST be processed as an invalid message as specified in section 3.1.6.