Hi all;
 
I came up with the following way of specifying default message receivers it can be either or both in axis2.xml and services.xml. Service can override global Message receivers by adding the same element in services.xml.
  <messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
                         class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
                         class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
    </messageReceivers>
 
So at the deployment time if there is an operation without a MessageReciver specified for that and have the MEP specified then depending on the mep correct default message receiver will be selected.
 
If operation have not indicate the MEP , then the default mep will be in-out
 

Thanks,
 Deepal
................................................................
~Future is Open~

Reply via email to