Basiaclly I've got the XML-d object to send, thanks to JIBX, I've got the WSDL endpoint. I just want to get the thing to that endpoint. it's proving extremely difficult for me.
I would like to use POJO mode because it looks much simpelr than the other modes doesn't involve messing with SOAP-Headers, and so on
POJO mode seems to invoke JAXB by default but I'd like to use JIBX - since the projects I'm interfacing with are already JIBX annotated and
I would like to either swap the POJO automatic JAXB-ing with my JIBX or just let me do the marshalling myself (which I can do successfully) and pass on my xml message
from( "A" )
.marshall().jibx() // works fine, and gives byte[] of marshalled object in In.body
.process() {
exchange.getIn().setHeader( CxfConstants.OPERATION_NAME, OPERATION);
}
.to("cxf://SERVICE"
+ "?serviceClass=SERVICE_CLASS"
+ "&wsdlURL=SERVICE?wsdl"
+ "&dataFormat=POJO" );
It then tries to invoke Jaxb on the messagebody and dies.
I've tried wrapping byte[] as a String, and wrapping in a List and sending with dataformat=MESSAGE but I can't seem to get what I'm trying to do