I Web service specifications

Axis2

Axis2 history

Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the widely used Apache Axis SOAP stack, built on the lessons learnt from Apache Axis.

- Apache Software Foundation

Required tools

We are now going to see how to build, deploy and test a end to end web service using Axis2, Eclipse and Tomcat. In order to build and run the example, you need to install the following pieces of software :

First of all you'll need to setup Axis2 into Eclipse Preferences. Go to Window > preferences and type axis2 in the filter input field. The set the location of the Axis2 runtime location on your hard drive. You are now able to use Axis2.

Axis2 Eclipse integration

Service specifications

This tutorial use our recurrent example. We will see how to make our CDService Java interface available through web services and how to invoke it. More specifically, we are going to expose the getById method only of our CDService interface.

The Dao implementation we are going to use is a very simple one. It use a Hashtable<Long,CD> as catalog and contains only one CD . Our Service implementation instantiate a Dao object to perform it's getById method.

CDDaoAxisImpl.java
CDServiceAxisImpl.java

Download the CDDaoAxisImpl.java CDDao implementation
Download the CDServiceAxisImpl.java CDService implementation