1) set axis2 classes in the classpath. Copy jars from axis2-installation-directory/lib folder.
These jars will go in WEB-INF/lib folder
Can download axis2 from http://ws.apache.org/axis2/
2) Add the following, as shown in the picture in the web.xml of your web project
Click to enlarge below image
As per the last mappping if the URL contains /services/ it will be routed to the AxisServlet. Other servlet mappings need not be there, if not required.
So the end point address for the Web service will become
http://host:port/webcontext/
services/webservicename
3. Create services folder(i.e. with name 'services') in the WEB-INF folder
4. Create new folder inside the services folder with the name same as the web service name e.g. DataService
5. Create META-INF folder inside the folder created above in step 4 .
DataService
--- META-INF
6. Create services.xml inside META-INF folder
DataService
--- META-INF
services.xml
Write info about your web services in the services.xml like in the picture.
Click to enlarge below image
Thats all...your web service is exposed to the world now.... :-). If you want to create wsdl of the web service and are using eclipse then can download axis2 eclipse plugings from http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html
Caution - Please make sure the cases of the service names match in the service.xml and the folder which is created.
Next topic - Integration with spring