From: http://tenn.javaeye.com/blog/94608
Integrate Web applications with axis2
This article describes how to integrate axis2 into your web application.
1. Release axis2.war to % tomcat_home % \ webapps. The published directory is % tomcat_home % \ webapps \ axis2.
, This directory is defined as % axis2_home %.
2. Copy all contents under the % axis2_home % \ WEB-INF directory to the % my_apps % \ WEB-INF directory.
3. Modify the Web. xml file under the % my_apps % \ WEB-INF directory, with the axis2 configuration to be retained as follows:
<! -- Axis2 service Servlet and Servlet mappings -->
<! -- ============================================= -->
<Servlet>
<Servlet-Name> axisservlet </servlet-Name>
<Servlet-class>
Org. Apache. axis2.transport. http. axisservlet
</Servlet-class>
<Load-on-startup> 1 </load-on-startup>
</Servlet>
<Servlet-mapping>
<Servlet-Name> axisservlet </servlet-Name>
<URL-pattern>/servlet/axisservlet </url-pattern>
</Servlet-mapping>
<Servlet-mapping>
<Servlet-Name> axisservlet </servlet-Name>
<URL-pattern> *. JWS </url-pattern>
</Servlet-mapping>
<Servlet-mapping>
<Servlet-Name> axisservlet </servlet-Name>
<URL-pattern>/services/* </url-pattern>
</Servlet-mapping>
<! -- ============================================= -->
4. Release % my_apps % application, publish Web service to % my_apps % \ WEB-INF \ Services \, which is generally a. AAR file.
5. access the Web service from the client: http: // localhost: 8080/my_apps/services/someservice.