xml 代码
- <listener>
- <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListenerlistener-class>
- listener>
- <servlet>
- <servlet-name>AxisServletservlet-name>
- <display-name>Apache-Axis Servletdisplay-name>
- <servlet-class>
- org.apache.axis.transport.http.AxisServlet
- servlet-class>
- servlet>
- <servlet>
- <servlet-name>AdminServletservlet-name>
- <display-name>Axis Admin Servletdisplay-name>
- <servlet-class>
- org.apache.axis.transport.http.AdminServlet
- servlet-class>
- <load-on-startup>100load-on-startup>
- servlet>
- <servlet>
- <servlet-name>SOAPMonitorServiceservlet-name>
- <display-name>SOAPMonitorServicedisplay-name>
- <servlet-class>
- org.apache.axis.monitor.SOAPMonitorService
- servlet-class>
- <init-param>
- <param-name>SOAPMonitorPortparam-name>
- <param-value>5001param-value>
- init-param>
- <load-on-startup>100load-on-startup>
- servlet>
- <servlet-mapping>
- <servlet-name>AxisServletservlet-name>
- <url-pattern>/servlet/AxisServleturl-pattern>
- servlet-mapping>
- <servlet-mapping>
- <servlet-name>AxisServletservlet-name>
- <url-pattern>*.jwsurl-pattern>
- servlet-mapping>
- <servlet-mapping>
- <servlet-name>AxisServletservlet-name>
- <url-pattern>/services/*url-pattern>
- servlet-mapping>
- <servlet-mapping>
- <servlet-name>SOAPMonitorServiceservlet-name>
- <url-pattern>/SOAPMonitorurl-pattern>
- servlet-mapping>
- <session-config>
- <session-timeout>5session-timeout>
- session-config>
- <mime-mapping>
- <extension>wsdlextension>
- <mime-type>text/xmlmime-type>
- mime-mapping>
- <mime-mapping>
- <extension>xsdextension>
- <mime-type>text/xmlmime-type>
- mime-mapping>
只要将上述的配置信息加入到你的web应用中就可以将Axis集成到你自己的项目中去了。还有一点需要说明,那就是除了这个配置以外还有将你的Axis.jar和其他必要的jar文件加入到你的WEB-INF/lib目录中,以及发布你的的webservice的classes到WEB-INF/classes/中。
安徽新华电脑学校专业职业规划师为你提供更多帮助【在线咨询】