User login

How to create async web service from using wsf/spring?

Forums :

Spring ws using wsf/spring are handled by configurations. How to expose a spring bean method as async web service?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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>

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.