camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Some camel questions?
Date Thu, 09 Sep 2010 14:37:10 GMT
I don't think you are using the right XPath and the right parameters for 
the evaluate.
Can you try to use below code ?

String s2 =
  d.xpath("/sea:ESROrder/OrderDetails/ResponseDetails/Status", 
String.class).evaluate(e);

Willem

On 9/9/10 5:33 PM, mpogra wrote:
>
> Sorry..the code that i changed it:
>
> 	String s2 =
> d.xpath("/sea:ESROrder/sea:OrderDetails/sea:ResponseDetails/sea:Status").evaluate(e.getContext(),
> e.getIn().getBody(String.class));
>
> I have added namespace prefix to it.


Mime
View raw message