1、axis2相关jar包进行下载
2、web.xml进行配置
<!-- 集成axis2 -->
<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>/services/*</url-pattern>
</servlet-mapping>
3、写接口,实现类
4、在WEB-INF下建立services 包
5、配置services.xml
<?xml version="1.0" encoding="UTF-8"?>
<service name="axisService" scope="application">
<parameter name="ServiceClass">com.axis.service.TestAxis</parameter>
<operation name="ServiceTest">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
</service>
最后
http://localhost:8080/webseriviceTest/services/axisService?wsdl 进行访问