This documentation is for WSO2 Enterprise Service Bus version 4.7.0 . View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Objective: Demonstrate the reliable message exchange between the client and ESB using WS-ReliableMessaging (WS-RM).

<definitions xmlns="">
    <proxy name="StockQuoteProxy">
                <header name="wsrm:SequenceAcknowledgement" action="remove"
                <header name="wsrm:Sequence" action="remove"
                        <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
        <publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>


  • Deploy the SimpleStockQuoteService in the sample Axis2 server and start it on port 9000.
  • Start ESB with the sample configuration number 201 (i.e. wso2esb-samples -sn 201).

In the above configuration, a proxy service is created with WS-RM enabled using the <enableRM/> tag. Therefore, this proxy service is capable of communicating with a WS-RM client. It also removes the WS-RM headers in the In Sequence before the message is sent to the back end server. This is required as the reliable messaging is applicable only between the client and ESB. Now start the client with WS-RM as follows:

ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8280/services/StockQuoteProxy -Dwsrm=true

In this case, client sends WS-RM enabled request to ESB where ESB sends normal request to the server. This can be observed by examining the wire level messages between the client and ESB. These messages would be similar to the wire level messages shown in sample 101. Each message would perform a similar function to the messages discussed in sample 53.

  • No labels