Axis2与Spring整合发布WebService

  1.在WEB-INF\services\webservice\META-INF\services.xml中配置如下内容

<serviceGroup>
	<service name="testService">
		<description>
			A test service
		</description>
		<parameter name="ServiceObjectSupplier" >
			org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
		</parameter> 
		<parameter name="SpringBeanName" >
			testService
		</parameter>
		<operation name="testMethod">
			<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
		</operation>
	</service>
</serviceGroup>
2.在applicationContext.xml中配置上面用到的testService即可 

 

你可能感兴趣的:(apache,spring,xml,Web,webservice)