<?xml version="1.0" encoding="UTF-8"?> <e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"> <e:Body> <ping> <pingRequest> <message> <method>startProcess</method> <content>gpi</content> </message> </pingRequest> </ping> </e:Body> </e:Envelope>
<camelContext id="camelProcess" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="jbi:endpoint:http://servicemix.apache.org/samples/bridge/pipeline/endpoint"/> <choice> <when> <xpath>//method='startProcess'</xpath> <to uri="xslt:bridge.xslt"/> <to uri="bean:initiateProcess"/> </when> <otherwise> <to uri="file:/Users/folder"/> </otherwise> </choice> </route> </camelContext> I have this camel route, after I evaluate the XPath the message become empty and I get an error: "premature end of file" which means the file is empty and I proof that by redirecting it to a folder. What is wrong with my XPath expression? ----- Gumba -- View this message in context: http://servicemix.396122.n5.nabble.com/problem-in-content-based-routing-and-xpath-evaluation-SMX4-3-tp4638543p5713897.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
