Wednesday 15 August 2012

WS-RM support in WMB 8.0


What is WS-RM?
WS-RM(Web Service Reliable Messaging) is a WS-* Specification that establishes reliable communication over un-reliable http link.
WS-RM defines how to ensure the delivery of SOAP messages and how to resend messages that have not been delivered successfully.

WS-RM protocol uses the concept of sequencing. Client should initially request new sequence from web service provider's endpoint.
Typical Scenario:
- Create sequence message 'wsrm:CreateSequence' is used to initiate the sequence. Also acknowledgement endpoint is provided in this message.(either client or server can initiate sequencing)
- CreateSequenceResponse message informs the sender that sequence has created and associates 'wsrm:Identifier'.
- Message sequence number = 1

<soapenv:Header>
    <wsa:To>AnyService</wsa:To>
    <wsa:ReplyTo>
        <wsa:Address>AnyDest</wsa:Address>
    </wsa:ReplyTo>
    <wsa:MessageID>AnyID
    </wsa:MessageID>
    <wsa:Action>urn:wsrm:EchoString</wsa:Action>
    <wsrm:Sequence xmlns:wsrm="http://docs.oasis-open.org/
ws-rx/wsrm/200702" soapenv:mustUnderstand="1">
        <wsrm:Identifier>wsrmId</wsrm:Identifier>
        <wsrm:MessageNumber>1</wsrm:MessageNumber>
    </wsrm:Sequence>
</soapenv:Header>
<soapenv:Body>
…….
</soapenv:Body>

- SequenceAcknowledgement is a timely message contains ranges of sequences number yet received.
<soap:header>
  <wsrm:sequenceacknowledgement>
    <wsrm:identifier>anyIdentifier</wsrm:identifier>
    <wsrm:acknowledgementrange lower="1" upper="1" />
    <wsrm:acknowledgementrange lower="3" upper="3" />  
  </wsrm:sequenceacknowledgement>
</soap:header>

Back to Broker 8.0

What is new in Websphere Message Broker 8.0?
Message Broker 8.0 supports both WS-RM V1.0 and B1.1. The default policy set uses WS-RM V1.1.

How to export/import WS Policy Set from Broker to WSJAX and .Net clients is excellently demonstrated on developerWorks here.

Regards.














No comments:

Post a Comment