Hi,
If you want to send the request to JBI service from camel, you can try
to use some xml transformation[1] to add the JBI wrapper.
[1] http://camel.apache.org/xslt.html
Willem
angel.ortiz wrote:
I have been able to create a Jetty endpoint and a Content-based router with
Camel. I can intercept the incoming messages and send them to the Camel
router.
[SOAP] -> Jetty endpoint ---> Content based router (camel) ---> CXF BC
(service 1, service 2, service N)
However, I have a problem here. The problem is the router fails to process
the in-message (and thus determinate where it should be sent):
INFO - PhaseInterceptorChain - Interceptor has thrown exception,
unwinding now
org.apache.cxf.interceptor.Fault: Message wrapper element is
'{http://schemas.xmlsoap.org/soap/envelope/}Envelope' but expected
'{http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper}message' at
org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Intercepto
r.java:97)
I need to send SOAP requests to Jetty. Is there a way to transform the SOAP
message to a JBI message before passing it to Camel?
Thanks,
Angel