Hi, I just created a small java program just to check if my xpath provides me with the appropriate infromation that I want(i.e the ServiceGroup ID) And I go the output as
urn:uuid:99A029EBBC70DBEB221347349722532, the term after urn:uuid: is the session Id. So are the terms urn:uuid: culprit? Should I try eliminating them so, that the xpression would just provide me with the number? Will that help? And BTW, my SOAP message XML is as follow: <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/" standalone="no"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:ReplyTo> <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address> <wsa:ReferenceParameters> <axis2:ServiceGroupId xmlns:axis2="http://ws.apache.org/namespaces/axis2">urn:uuid:99A029EBBC70DBEB221347349722532</axis2:ServiceGroupId> </wsa:ReferenceParameters> </wsa:ReplyTo> <wsa:MessageID>urn:uuid:99A029EBBC70DBEB221347349722564</wsa:MessageID> <wsa:Action>Perform some action</wsa:Action> <wsa:RelatesTo>urn:uuid:63AD67826AA44DAE8C1347349721356</wsa:RelatesTo> </soapenv:Header> <soapenv:Body> content of the body. </soapenv:Body> </soapenv:Envelope> And My Xpath expression is xpath.compile("/*[local-name()='Envelope']/*[local-name()='Header']/*[local-name()='ReplyTo']/*[local-name()='ReferenceParameters']/*[local-name()='ServiceGroupId']/text()") Is it right? -- View this message in context: http://camel.465427.n5.nabble.com/Performing-Sticky-load-balancing-in-Camel-tp5719170p5719184.html Sent from the Camel - Users mailing list archive at Nabble.com.