Hi Lahiru,

in your log you would have noticed the  text " INFO - LogMediator To:
/services/StockQuote,", this is what it gets filtered by the filter
mediator. It's an Axis2 option to set WS-Addressing To endpoint. These
options are not included in the Soap message in this case. For the sample
execution what is mentioned in the docs is to use -Dtrpurl which is
specifying the transport URL. If you specify the addurl (-Daddurl together
with -Dtrpurl) which is the address Url this property will be included
because of the different ways they are handled.

You can read more on this from the followings.
[1]
http://axis.apache.org/axis2/java/core/api/org/apache/axis2/client/Options.html
[2] https://docs.wso2.com/display/ESB481/Synapse+XPath+Variables
[3] http://synapse.apache.org/1_0/samples_setup.html - This is an old
documentation. I could not find any reference to WSO2 documentation
regarding the smart client mode, dumb client mode and Proxy client mode.
[4] https://docs.wso2.com/display/ESB481/Filter+Mediator
[5] http://wso2.com/library/2561/





On Tue, Sep 23, 2014 at 5:43 PM, Lahiru Chandima <[email protected]> wrote:

> Hi All,
>
> I am running examples provided with WSO2 ESB to get familiar with it.
>
> Sample 1 [1
> <https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages>],
> explains how to use a filter mediator. The filter used is as follows
>
> <filter source="get-property('To')" regex=".*/StockQuote.*">
>
> As per the documentation, this filters the To EPR of the message, that
> means, the "To" property of the soap header of the message as I understood.
>
> But, when I checked the input soap message (I used a log mediator to log
> the incoming message), the soap header does not have a "To" property. The
> soap header of the message is given bellow. But, the message somehow gets
> routed to the Axis2 service.
>
> <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>         
> <wsa:MessageID>urn:uuid:7479f6f7-d302-41f1-a7de-4b35f64ad366</wsa:MessageID>
>         <wsa:Action>urn:getQuote</wsa:Action></soapenv:Header>
>
>
>
> Can somebody please explain how this happens?
>
> Thanks.
>
> [1]
> https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> [email protected]
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to