Could you have a look at [1]. May be it will help. This is a working example...
However, you should be able to simplify your route: from("cxf:cxfEndpoint?wsdlURL=foo&dataFormat=POJO") .process(myProcessor) .to("bean:myBean"); Is your object "example.ExampleResponse" generated by the CXF maven plugin? May it's not the right object? Check your generated ObjectFactory class. May there is a second createExampleResponse() method which takes an JaxbElement? If not, can you share your code? [1] https://github.com/muellerc/apachecon-na-2013/tree/master/cxf-component Best, Christian On Wed, Feb 27, 2013 at 5:54 PM, Smith-John <mich...@gmail.com> wrote: > I also tried it with generated JAXB classes from my wsdl/xsd and > marshalling. > > But > > from("cxf:cxfEndpoint?wsdlURL&dataFormat=PAYLOAD").unmarshal(jaxb).process(myProcessor).to("bean:myBean").marshall(jaxb) > doesn't work. > > myBean puts an Object of the generated jaxb classes into the body but I get > unable to marshal type "example.ExampleResponse" as an element because it > is > missing an @XmlRootElement annotation. > > Some advice to fix this would be nice. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/cxf-response-tp5728106p5728236.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --