Hi Aswin,
I got your patch, it gets the WebServiceProvider work. That is why I
love open source , people can elaborate the software across the world :).
Since CXF also provides the simple front end to provides Web Services
implementation, I still need to use the CXF's ServerFactoryBean API to
create the CXF Endpoint for handling the MESSAGE/PAYLOAD message.
Basically,
they are the same thing that you got from the WebServiceProvider which
skip some interceptors which are used for POJO invocation.
Here are some points that I want to say about the patch:
1. You need to create a JIRA[1] to submit the patch and grant it with
ASF license otherwise I can't applied it.
2. Please using the "svn diff > path "command to create the patch. It
will generate the patch file will relate patch.
3. I notice you remove the cxf component META_INF description file, but
do not add a new one for that.
BTW, I will start a new thread to discuss whether we need to change the
cxf component's URI prefix "cxf" to avoid the "cxf" bus conflict in the
spring context.
[1]https://issues.apache.org/activemq/browse/CAMEL
Willem
aswin.nair wrote:
Hello Willem,
Thanks for the reply. I was playing around with this stuff and tried some
minor changes to the CXFConsumer and CXFInvoker to deal with the
WebServiceProvider annotation and work accordingly. I could get it to work
and have some thoughts on this. Since WebServiceProvider is the JAX-WS
standard way of dealing with message/payload directly, couldn't we make the
WebServiceProvider endpoint the default way of dealing with Message/Payload
mode. So a camel CXFEndpoint that needs to receive the data in
message/payload mode would just have to declare a SEI with
@WebServiceProvider annotation and the camel route would be invoked with
the specified format . From camel side, this would mean that we would let
CXF do all the message construction job and finally call the CamleInvoker
for dispatching to the camel route using the modified CamelInvoker. I am
sending you a patch file with the changes I made, please have a look and let
me know what you think.
Aswin