You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gopichandb <go...@gmail.com> on 2012/08/27 19:25:58 UTC

How to use Apache Camel to develop a CXF webservice in the application which is already using Axis1

Hi,

Our groovy/grails application is using Axis1 to talk to client 1.  But
Client 2 want his web service using Soap 2/CXF.  We were not able to
integrate Axis1 and CXF plugins together in our application, facing many
issues.  After googling a bit came to know from some forums that we can use
Apache Camel to integrate both Axis1 and CXF in same application.  Can
someone suggest if we can do that and also let us know how to do that as we
are brand new to Apache Camel.  Thanks in advance.

Regards,
Gopi



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-use-Apache-Camel-to-develop-a-CXF-webservice-in-the-application-which-is-already-using-Axis1-tp5718145.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use Apache Camel to develop a CXF webservice in the application which is already using Axis1

Posted by gopichandb <go...@gmail.com>.
Thanks Willem Jiang, this is really helpful.



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-use-Apache-Camel-to-develop-a-CXF-webservice-in-the-application-which-is-already-using-Axis1-tp5718145p5718214.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use Apache Camel to develop a CXF webservice in the application which is already using Axis1

Posted by Willem jiang <wi...@gmail.com>.
The key issue that CXF and Axis1 cannot work together is CXF doesn't support JAXRPC which is replaced by JAXWS and is supported by Axis1.
If you are using Camel you can bridge these two stacks together by using POJO data format  with camel-cxf component.

As there is no Axis component provides in Camel, you may need to redirect the request of Axis client to CXF by using Camel template. There are some examples[1][2] in camel you may take a look. 


[1]http://camel.apache.org/cxf-tomcat-example.html
[2]http://camel.apache.org/cxf-proxy-example.html
-- 
Willem Jiang

FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang





On Tuesday, August 28, 2012 at 1:25 AM, gopichandb wrote:

> Hi,
> 
> Our groovy/grails application is using Axis1 to talk to client 1. But
> Client 2 want his web service using Soap 2/CXF. We were not able to
> integrate Axis1 and CXF plugins together in our application, facing many
> issues. After googling a bit came to know from some forums that we can use
> Apache Camel to integrate both Axis1 and CXF in same application. Can
> someone suggest if we can do that and also let us know how to do that as we
> are brand new to Apache Camel. Thanks in advance.
> 
> Regards,
> Gopi
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-use-Apache-Camel-to-develop-a-CXF-webservice-in-the-application-which-is-already-using-Axis1-tp5718145.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).