axis2 WebService 发布

阅读更多
1.填加MAVEN依赖
		
			org.apache.ws.commons.axiom
			axiom-dom
			1.2.9
			
				
					org.apache.geronimo.specs
					geronimo-javamail_1.4_spec
				
			
		
		
			org.apache.ws.commons.axiom
			axiom-impl
			1.2.9
			
				
					org.apache.geronimo.specs
					geronimo-javamail_1.4_spec
				
			
		
		
			org.apache.axis2
			axis2-adb
			1.5.2
		
		
			org.apache.axis2
			axis2-adb-codegen
			1.5.2
		
		
			org.apache.axis2
			axis2-corba
			1.5.2
		
		
			org.apache.axis2
			axis2-fastinfoset
			1.5.2
			
				
					com.sun.xml.fastinfoset
					FastInfoset
				
			
		
		
			org.apache.axis2
			axis2-java2wsdl
			1.5.2
		
		
			org.apache.axis2
			axis2-jaxbri
			1.5.2
		
		
			org.apache.axis2
			axis2-jaxws
			1.5.2
		
		
			org.apache.axis2
			axis2-jibx
			1.5.2
		
		
			org.apache.axis2
			axis2-json
			1.5.2
		
		
			org.apache.axis2
			axis2-mtompolicy
			1.5.2
		
		
			org.apache.axis2
			axis2-soapmonitor-servlet
			1.5.2
		
		
			com.google.code.gson
			gson
			1.4
				
		
			org.apache.axis2
			axis2-spring
			1.5.2
			
		
		
			org.apache.axis2
			axis2-xmlbeans
			1.5.2
		
		
			org.apache.axis2
			mex
			1.5.2
			impl
		
	        
            org.slf4j
            slf4j-api
            1.5.8
        
        
            org.slf4j
            slf4j-log4j12
            1.5.8
        

2.在web.xml中进行配置
	
		AxisServlet
		org.apache.axis2.transport.http.AxisServlet
		1
	

	
		AxisServlet
		/services/*
		

3.每个webservice接口都需要建立一个services.xml
webapp/WEB-INF/services/ReloadDictService/META-INF/services.xml

services.xml

	
		
		upSmsIServerWebservice
		
		
			org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
		
		UpSmsIServerWebservice
		
			
		
	
 

axis2 WebService 发布_第1张图片
如果出现以下错误:
javax.servlet.ServletException: File "/axis2-web/listSingleService.jsp" not found

请检查service.xml中服务名称是否正确
  • axis2 WebService 发布_第2张图片
  • 大小: 6.6 KB
  • 查看图片附件

你可能感兴趣的:(axis2 WebService 发布)