How to create async web service from using wsf/spring?
Spring ws using wsf/spring are handled by configurations. How to expose a spring bean method as async web service?
- Login or register to post comments
- Printer friendly version
- 404 reads
Spring ws using wsf/spring are handled by configurations. How to expose a spring bean method as async web service?
You need to modify the
You need to modify the axis2Config.xml to use the AsynchMessageReceiver.
<bean id="axis2MsgReceiverINOUT3" class="org.wso2.spring.ws.beans.MessageReceiverBean">
<property name="mep" value="http://www.w3.org/2004/08/wsdl/in-out"></property>
<property name="clazz" value="org.apache.axis2.receivers.RawXMLINOutAsyncMessageReceiver"></property>
</bean>
Add this bean to the list of message receivers.
<property name="messageReceivers">
<list>
<ref bean="axis2MsgReceiverIN"/>
<ref bean="axis2MsgReceiverINOUT"/>
<ref bean="axis2MsgReceiverIN2"/>
<ref bean="axis2MsgReceiverINOUT2"/>
<ref bean="axis2MsgReceiverINOUT3"/>
</list>
</property>