-
1. Re: ServiceMix Web Service BC?
mielket May 5, 2008 11:21 AM (in response to roger)Not sure what format your original XML document is in but you need to construct a valid SOAP message somehow. This might require some XML transformation or utilizing a servicemix-bean class. Thereafter you can simply route the message to your CXF BC provider component that is configured to invoke on the external web service.
The WS operation name is determined from your SOAP request (it is basically the first element on the message payload).
-
2. Re: ServiceMix Web Service BC?
roger May 5, 2008 5:39 PM (in response to mielket)Hi again,
Thanks for your prompt reply!
If I understand you correctly, what we have to do is to manually create the Web Service call wrapped inside a SOAP envelope (preferably in my Apache Camel RouterBuilder descendant?) and then route that to the CXF BC which will do the transport for me? It sure solves the task, though feelsa bit cumbersome, especially when there is JAX-WS bundled with JSE 6 these days. Anyhow, can you confirm that this is the way to go, and do you have any hints if using JSE 6 JAX-WS as a "helper" would be a good idea?
Regards,
Roger
-
3. Re: ServiceMix Web Service BC?
mielket May 7, 2008 4:27 AM (in response to roger)I was assuming the message that comes into your Camel route is of very similar structure to the message you need to send out to the external system. In that case you might only need some basic XSLT transformation between the two message formats.
If the interfaces differ a lot, then you might rather want to use a CXF Proxy for the outgoing call (see section Proxy on the link provided). You can use a CXF Proxy from inside a servicemix-bean or servicemix-cxf-se component.
I am not sure if Java 6 JAX-WS support can help you and leave that for someone else to answer.