Search code examples
soapbindingapache-axis

Axis2 webservice with multiple soap bindings


When i add the service via SoaPUI, it returns with 2 bindings.(soap11 and soap12). They have both same methods but only 12 works.I would like to have only a soap12 shown and not soap11 binding. The services xml file is below. Any help would be appreciated.

Thank you.

<service name="UserOperations" >
<Description>
    Please Type your service description here
</Description>
<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="ServiceClass" locked="false">xxx.xxx.xxx.xxx.webservices.UserOperations</parameter>


Solution

  • Try inserting

    <parameter name=”disableSOAP12”>true</parameter>
    

    in your service.xml

    More info here.