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

xdirewolfx's picture

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

sanjayak's picture

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>
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)