Problem fixed : the declaration of namespace must be in camel context not in bean.
Thank you for your reactivity titexe wrote: > > Hello, > > I'm trying to developp camel route to filter messages XML format (xpath) > > This is my configuration: > > <camelContext id="camel" > xmlns="http://activemq.apache.org/camel/schema/spring"> > <route> > <from uri="activemq:XML"/> > <choice> > <when> > <xpath>/Envelope/Header[Action='Customer']</xpath> > <to uri="activemq:queue:CUSTOMER"/> > </when> > <otherwise> > <to uri="activemq:queue:CONTACT"/> > </otherwise> > </choice> > </route> > </camelContext> > > This configuration work very fine for message in this xml format : > <?xml version="1.0" encoding="UTF-8"?> > <Envelope> > <Header> > <Action>Customer</Action> > </Header> > > But in this XML format, does not work: > > xml version = "1.0" encoding = "UTF-8"? > <Envelope > Xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/Message"> > <Header> > <Action> Customer </ Action> > </ Header> > > > There's someone who could help me solve this problem, > > thank you in advance > > version activemq : fuse message broker 5.3.0.3 > version java : Java 1.6 > > Best regards, > > titexe > > -- View this message in context: http://www.nabble.com/fail-filter-XPATH-%28camel%29-tp25531213p25611336.html Sent from the Camel - Users mailing list archive at Nabble.com.
