This documentation is archived and is not being maintained.

WebService.SoapVersion Property

Gets the version of the SOAP protocol used to make the SOAP request to the XML Web service.

Namespace: System.Web.Services
Assembly: System.Web.Services (in system.web.services.dll)

[ComVisibleAttribute(false)] 
public SoapProtocolVersion SoapVersion { get; }
/** @property */
public SoapProtocolVersion get_SoapVersion ()

public function get SoapVersion () : SoapProtocolVersion

Not applicable.

Property Value

One of the SoapProtocolVersion values. The default is Default.

If the SOAP protocol was not used to communicate with the XML Web service, such as HTTP-GET or HTTP-POST, the value of the SoapVersion property is Default.

For XML Web services that do not derive from the WebService class, the version of the SOAP protocol used to make the SOAP request to the XML Web service can be also be accessed using the "WebServiceSoapVersion" entry of the System.Web.HttpContext.Items property. That entry is of type SoapProtocolVersion.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: