Archive
JAX-WS with Apache CXF and Eclipse [step1]
Few months ago, I had to migrate WebServices from my professional project based on Axis to JAX-WS which is the Java API for XML Web Services supported by the Java Platform, Standard Edition 6 (Java SE 6).
There are several implementations of JAX-WS like :
- Glassfish – Metro.
- JBoss WS.
- Axis2.
- Spring JAX-WS.
- Apache CXF which is based on XFire.
In my case, my professional project doesn’t use Spring. We have chosen Apache CXF which use Spring by default but you can manage CXF without Spring.
I have discovered and learned CXF with Eclipse JEE Indigo (works too with Eclipse JEE Helios) which provides Wizard to generate JAX-WS annotation and initialize CXF application. I think that playing with the CXF Eclipse Wizard is a good start point to learn CXF, so I decided to write some articles called JAX-WS with Apache CXF and Eclipse (this link is the plan of articles) which explains step by step how to generate WebService and Consumer of WebService with CXF Eclipse Wizard.
In my articles I will use :
- the last version 2.4.2 of CXF.
- Tomcat 7 as server.
- Eclipse JEE Indigo.
But you can do the same thing with another version of CXF and another server. In this article I will explain how to
- initialize the CXF Plugin
- and create an empty Eclipse Dynamic Web Project with Tomcat 7.