资源描述:
《创建web service(axis)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1、新建一个Web工程,工程名为“AxisTest”:2、新建“lib”文件夹,然后把主要JAR包:axis.jar,commons-discovery-0.2.jar,commons-logging-1.0.4.jar,jaxrpc.jar,wsdl4j-1.5.1.jar,saaj.jar;可选包(发布服务及生成客户端程序是要用到的):activation.jar;mail.jar都拷贝到此“lib”文件夹下,并把主要的JAR包添加到工程的classpath中;3、配置“web.xml”:
2、xml version="1.0" encoding="UTF-8"?>3、e/web-app_2_4.xsd"> Apache-Axis org.apache.axis.transport.http.AxisHTTPSessionListener AxisServlet4、me> org.apache.axis.transport.http.AxisServlet
AdminServlet org.apache.axis.transport.http.AdminServlet
5、 100 SOAPMonitorService org.apache.axis.monitor.SOAPMonitorService SOAPMonitorPo
6、rt 5001 100 AxisServlet /servlet/AxisServlet 7、pping> AxisServlet *.jws AxisServlet /services/*
8、 SOAPMonitorService /SOAPMonitor