Saturday, May 28, 2011

How to Remove HttpSoap12 in webservice SOAP 1.2 in .NET Framework 2.0

How to Remove HttpSoap12 - SOAP 1.2 in .NET Framework 2.0


The new ASMX runtime in .NET 2.0 supports SOAP 1.2. At this moment SOAP 1.1 is most widely being used in the industry. In the .NET Framework both SOAP 1.1 and SOAP 1.2 are supported. This means that the Web Services created in .NET Framework 2.0 will be configured to support both SOAP 1.1 and SOAP 1.2 messages. This indirectly means that the WSDLs thus created for the Web Service will have two types of bindings, i.e., SOAP 1.1 and SOAP 1.2.


<wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
 
 
Whether both these bindings have to be added to the web service can be configured by enabling or disabling them from the web.config file.

<configuration>
  <system.web>
    <webServices>
      <protocols>
        <remove name="HttpSoap12"/>
      </protocols>
    </webServices>
  </system.web>
</configuration>
 
 

No comments:

Post a Comment