Sunday, April 29, 2007

Generally Four Protocols are supported in .net web services

  1. SOAP 1.1.
  2. SOAP 1.2
  3. HTTP GET
  4. HTTP POST

HTTP GET and HTTP POST are disabled by default in ASP.net. You can enable them in the web.config file in web service directory

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.




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.










Replace "HttpSoap12" with "HttpSoap" to remove the SOAP 1.1 binding.

For enabling the HTTPGET






No comments: