On Sun, Feb 3, 2013 at 4:17 PM, helander <leh...@gmail.com> 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(...); >
You cannot do this. Data-Formats is not as flexible as endpoint uris are. You can use a POJO where you can do your dynamic marshal / unmarshal from Java code. > > 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. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen