Harm Yes there is a way: Use this XPath, which ignores the namespace and searchs to any depth in the XML. //*[local-name()='token']
Paul Harm Verhagen wrote: > > Saliay, Paul, OK, I understand thanks. > > I have some further inquiries how xpath can be used with wso2. > Is it also possible to match _any_ parameter called 'token' with an xpath? > I want to match for _any_ method, the parameter 'token' in the esb. (so > not only for getMessageStatus(), but also for foo(token,...) > bar(token,...) etc.) > > Regards, > Harm > > > On Sat, Sep 27, 2008 at 4:01 AM, Saliya Ekanayake <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi Harm, see the comments below. > > > The WSO2 ESB executes XPath evaluation for the SOAP Body element. This > means that the XPath to the token element is //getMessageStatus/token, > but since the getMessageStatus element is namespace qualified (i.e > {http://webservice.service.platform.boosttechhouse.com/}getMessageStatus > > <http://webservice.service.platform.boosttechhouse.com/%7DgetMessageStatus>), > we need to define the particular namespace as well. The namespace prefix > may change from prefix presented in the actual payload. So in your case > the correct syntax is, > > <syn:property xmlns:m0=" > > <http://services.samples/web>http://webservice.service.platform.boosttechhouse.com/ > <http://services.samples/web>" name="token" > expression="//m0:getMessageStatus/token"/> > > Regards, > Saliya > > > > > What am I missing ? > > Does anyone have an idea? > > > > Regards, > > Harm > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Esb-java-user mailing list > > [email protected] <mailto:[email protected]> > > http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > > > > _______________________________________________ > Esb-java-user mailing list > [email protected] <mailto:[email protected]> > http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Esb-java-user mailing list > [email protected] > http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user -- Paul Fremantle CTO and Co-Founder, WSO2 OASIS WS-RX TC Co-chair VP, Apache Synapse Office: +44 844 484 8143 Cell: +44 798 447 4618 blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com _______________________________________________ Esb-java-user mailing list [email protected] http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
