Hi Harm, see the comments below.

Harm Verhagen wrote:
> Hi,
>
> I have a question.
> I have the following soap request.
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:web="http://webservice.service.platform.boosttechhouse.com/";>
> <soapenv:Body>
>       <web:getMessageStatus>
>          <token>AA</token>
>          <!--Optional:-->
>          <transactionId>1</transactionId>
>       </web:getMessageStatus>
>    </soapenv:Body>
> </soapenv:Envelope>
>
> I want to extract the *token *field  in the ESB. Both for the log 
> mediator and for the dbreport mediator.
> I'm unsure how to do this.
> I checked the dblookup/report examples, but I don't get it.
> The field from the example I cat get with:
> <syn:property xmlns:m0="http://services.samples/xsd"; name="SYMB" 
> expression="//m0:getQuote/m0:request/m0:symbol"/>
>
> I tried.
>   <syn:property xmlns:m0="http://services.samples/xsd"; name="token" 
> expression="//m0:getMessageStatus/m0:token"/>
>   <syn:property xmlns:m0="http://services.samples/web"; name="token" 
> expression="//m0:getMessageStatus/token"/>
> Both are not working
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), 
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]
> 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

Reply via email to