Hi claus,
If i use the Xpath java API, something like this:

XPathExpression expression =
xpath.compile("substring(string(/*[local-name()='Envelope']/*[local-name()='Header']/*[local-name()='ReplyTo']/*[local-name()='ReferenceParameters']/*[local-name()='ServiceGroupId']/text()),
10)");

String id = expression.evaluate(exchange.getContext(), body);

I get an error saying The method evaluate(Object, QName) in the type
XPathExpression is not applicable for the arguments (CamelContext, String)

And if use the Xpathbuilder, it gives me an error saying invalid xpath
expression. But when i test the same xpath expression using Xapth java API,
i get the serviceGroup id.

Any help would be really useful.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5719999.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to