.NET 2.0 : Change the SOAP protocol version

10. March 2006

To change the SOAP protocol version, use the SoapHttpClientProtocol.SoapVersion property.
A ASP.NET 2.0 web service class inherit of SoapHttpClientProtocol class, so you can use the SoapVersion property.
3 values can be used…

MyWebService service = new MyWebService();
[…]
service.SoapVersion = SoapProtocolVersion.Default;
service.SoapVersion =
SoapProtocolVersion.Soap11;
service.SoapVersion =
SoapProtocolVersion.Soap12;

The default value is SoapProtocolVersion.Soap11

XML, Web Services ,

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading