我正在为我的webservices使用axis2框架。我创建了一个模块。现在,我如何将我的春豆注入模块。我的意思是下面的服务示例是我们通常所做的。
<service name="TestWebService" scope="application">
<description>
TestWebService
</description>
<schema schemaNamespace="http://axis.apache.org/axis2" />
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<parameter name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
</parameter>
<parameter name="SpringBeanName">SampleWebService</parameter>
<module ref="soapValidation" />
<module ref="rampart" />
</service>
对于下面的module.xml,同样如何注入spring bean
<?xml version="1.0" encoding="UTF-8"?>
<module name="soapValidation"
class="com.test.axis.handlers.AddOperationSchemaValidatorModule">
<InFlow>
<handler name="InFlowSoapValidationHandler"
class="com.test.axis.handlers.AddOperationSchemaValidatorHandler">
<order phase="soapRequestValidationPhase" />
</handler>
</InFlow>
</module>
谢谢,
Naredra