I am using explicit dependencies in the POM for CXF and use version 2.4.1. I inspected the WEB-INF/lib folder and in both cases, using camel 2.7.2 or 2.8.0 I have only the CXF 2.4.1 jars deployed.
I think it is not related to version clashes, since 2.8.0 by default uses CXF 2.4.1. I did an even more interesting test: I deploy at the same time a Camel CXF Endpoint and a JAX WS endpoint of the very same class: <cxf:cxfEndpoint id="camelEndpoint" address="/camel" serviceClass="com.test.SomeClass" /> <jaxws:endpoint id="cxfEndpoint" address="/cxf" implementor="com.test.SomeClass" /> The WSDL at the cxf URL is correct, the Camel one not, so this makes sure that the very same JARs produce the error, and it must be some handling related to the Camel endpoint. With Camel 2.7.2 none of these issues occur. -------- Original-Nachricht -------- > Datum: Fri, 29 Jul 2011 19:18:35 +0800 > Von: Willem Jiang <[email protected]> > An: [email protected] > Betreff: Re: Camel CXF Endpoint creating incomplete WSDL? > Can you compare the mvn dependency:tree difference between using Camel > 2.7.2 and Camel 2.8.0? > It could relate to some ws annotation jars. > > On Fri Jul 29 18:58:41 2011, [email protected] wrote: > > I use latest Camel version 2.8 and CXF 2.4.1 > > > > I don't use OSGi, but deploy Camel into Tomcat. > > > > I know that Camel delegates to CXF and I am using the same versions, > > which is even more confusing. > > > > Moreover, I discovered the following: > > > > If I use the very same code and just change in the pom.xml from Camel > 2.8.0 > > to 2.7.2 the WSDL is correct! I have the CXF dependencies explicitly in > my > > POM pointing to 2.4.1 an I don't change these. > > > > So could anyone please verify, for me this might be a hint for a bug > > in version 2.8.0 > > > > Thx. > > > > <quote author="Willem.Jiang"> > > Which version of CXF are you using? > > Do you use camel inside of Karaf or other OSGi container ? > > > > camel-cxf is delegate the WSDL generation to CXF, so there should no > > difference between the generated wsdl of camel-cxf and CXF, if you are > > using same version of CXF. > > </quote> > > > -- > Willem > ---------------------------------- > FuseSource > Web: http://www.fusesource.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.javaeye.com (Chinese) > Twitter: willemjiang > Weibo: willemjiang -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
