Hi,

The documentation (that I can find) is not clear on how I specify the
dependencies in cxf to get JAX WS 2.2.1 endpoints.  I have the 2.2.x
jaxws-api and jaxb-api jars in my endorsed directory.   I have
confirmed this part is at least working by creating 2.2 JAX Web
services using Endpoint.publish (no cxf dependencies in my project)
with just a jaxws dependency of:

<dependency>
                         <groupId>com.sun.xml.ws</groupId>
                         <artifactId>jaxws-rt</artifactId>
                         <version>2.2.1</version>
                </dependency>

I used an @XmlElement (required = true) annotation in my web service
interface to ensure I did indeed get 2.2 jaxws endpoint generated.

I am unclear what is the recommended approach for CXF.  What
dependencies should I have in my projects to ensure I get cxf 2.2
version of jaxws frontend.  Do I have to activate the jaxws22 or is
there something a little cleaner for end users?   Do I have to include
the jaxws-rt above as well or will cxf do this for me?

Thanks
Jason

Reply via email to