I'm using Camel 3.10 My route definition is similar to
final JaxbDataFormat jaxbCardService = new JaxbDataFormat(true); jaxbCardService.setContextPath("com.project.generated.cardservice"); from("direct://" + QUEUE_CREATE_PERSON) .to("cxf://host:port/service/name") // receives ResponseCreateNewPerson .unmarshal(jaxbCardService); When I test this route I advice CXF endpoint with .setBody() method providing natural JAXBelement<ResponseCreateNewPerson> as route unmarshaller expected. But I have an Exception with stacktrace beginning with java.io.IOException: javax.xml.bind.UnmarshalException - with linked exception: [com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 56; unexpected element (uri:"http://some.uri.com/", local:"createNewCardResponse"). Expected elements are (none)] I don't understand why such thing is happening. Be honest, I am understand that Camel have no classes definition available to be unmarshalled in. But I really do not get how to tell it about them. How to set up JAXB dataformat properly? _________________ Vyacheslav Boyko, mailto:mail4...@gmail.com