Hi,
If you are using JDK 1.5, you just need to add the dependency of jaxws
frondend with the version 2.3.1.
If you are using JDK 1.6, you need to endors the jaxws-api and jaxb-api
first.
You can find the example from the cxf jaxws frontend pom.xml[1] profile
jaxws.
[1]https://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxws/pom.xml
Willem
On 12/20/10 2:02 PM, Jason Pell wrote:
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
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang