You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by techybolek <te...@yahoo.com> on 2014/05/16 03:21:19 UTC
how to serialize incoming message to XML
Hello, I want to serialize the incoming message to XML. I'm starting from the
camel-example-cxf-osgi example.
My Route:
JaxbDataFormat jaxb = new JaxbDataFormat();
jaxb.setPartClass("org.apache.camel.example.reportincident.InputReportIncident");
from("cxf:bean:reportIncident")
.convertBodyTo(InputReportIncident.class)
.marshal(jaxb)
.bean(new MyBean2())
.transform(constant(ok));
But I'm getting error and I'm at a loss:
java.io.IOException: javax.xml.bind.JAXBException: class
org.apache.camel.example.reportincident.InputReportIncident nor any of its
super class is known to this context.
Appreciate any help. Thx.
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-serialize-incoming-message-to-XML-tp5751188.html
Sent from the Camel - Users mailing list archive at Nabble.com.