Sunday, September 20, 2009

Jax ws using maven

I just created a template (just like artifact) to ease the development/study of the jaxws. To explore the jaxws copy paste the template folder and change only the necessary files. (hope this will be useful till I find a maven artifact!)
  • The project contains a template folder(parent) which contains the client and server modules.
  • Server and client uses jaxws ri. (In future I will also add CXF template)
  • An helloworld service with sayhello method is configured.
  • Server project includes the Junit testcase for testing the service.
  • The client is generated from the wsdl using wsimport.
Required softwares,
  1. Java 1.5 or above (I tested with Java 1.6)
  2. Maven 2.0 or above (I tested with maven 2.2.1)
  3. Eclipse IDE (optional)
Step to test and explore the source code,
  1. Download the source code
  2. Install jdk and set javahome and m2home.
  3. Run "mvn clean install" to compile, test and build war. (run at template directory, this will build both client and server)
Happy coding :)