Hi,
is there a way to umarshal XML with CDATA sections and back using jaxb in
camel routes?
This is my XML:
<Error><Payload></Payload></Error>
I created a test route to unmarshal and marshal in series:
DataFormat jaxbError = new JaxbDataFormat("error.model");
from("direct:error")
.unmarshal(jaxbError)
.log("${body}")
.marshal(jaxbError)
.to("mock:error");
Btw I'm creating my model objects with xjc from a schema file.
Thanks in advance
Yusuf
is there a way to umarshal XML with CDATA sections and back using jaxb in
camel routes?
This is my XML:
<Error><Payload></Payload></Error>
I created a test route to unmarshal and marshal in series:
DataFormat jaxbError = new JaxbDataFormat("error.model");
from("direct:error")
.unmarshal(jaxbError)
.log("${body}")
.marshal(jaxbError)
.to("mock:error");
Btw I'm creating my model objects with xjc from a schema file.
Thanks in advance
Yusuf