如何使用spring集成开发axis2 webservice?

时间:2017-12-23 07:04:57

标签: java spring axis2

<service name="demoServiceImpl" scope="application">
    <description>simple spring example</description>
    <schema schemaNamespace="http://www.ylzinfo.com/xsd"/>
    <parameter name="SpringBeanName">demoServiceImpl</parameter>
    <parameter name="ServiceObjectSupplier" locked="false">
        org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
    </parameter>
    <operation name="fetchPdfCipher">
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </operation>
</service>

我知道cxf可以通过spring集成开发,但我想知道axis2如何与spring集成?

1 个答案:

答案 0 :(得分:1)

您的service.xml看起来是正确的。由于正在使用SpringServletContextObjectSupplier,您只需在应用程序的web.xml中正确配置applicationContext.xml 在您的web.xml中添加listenercontextConfigLocation,您就可以开始了。 更多文档可用here

希望这有帮助。