Do you means you want to control the data format (soap 11 or soap 12) dynamically? I just checked the code of SOAP data format, it doesn't suppose to change the data format dynamically. But I think it is simple to work around it by use the CBR[1] which can check the message header of exchange property to route the message to the right route which is set with the right data formate.
[1]http://camel.apache.org/content-based-router.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Sunday, February 3, 2013 at 11:17 PM, helander wrote: > I have a route that creates Soap requests/responses using camel-soap. > > The route should handle arbitrary soap services which means that I can not > define the "dataFormat" when the route is built. As of now, I create the > "dataFormat" in a processor and put it into an exchange property. My idea > was to be able to reference the "dataFormat" from the exchange in my > "marshal()" and "unmarshal()" steps in the route, but I can not figure out > the syntax to do that, can anyone help? If this is not possible, can do the > marshal/unmarshal directly in a processor? If so, what is the syntax? > > > from("....").processor(....).marshal(....).to("service > endpoint").unmarshal(...); > > > Thanks > > Lars > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-data-format-in-route-tp5726853.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).