This topic has not yet been rated - Rate this topic

WebServiceProtocols Enumeration

Specifies the transmission protocols that are used to decrypt data sent from a client browser in the HTTP request.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Web.Services.Configuration
Assembly:  System.Web.Services (in System.Web.Services.dll)
[FlagsAttribute]
public enum WebServiceProtocols
Member nameDescription
UnknownUnknown protocol.
HttpSoapThe HTTP SOAP protocol.
HttpGetThe HTTP GET protocol.
HttpPostThe HTTP POST protocol.
DocumentationThe Web Services Documentation protocol.
HttpPostLocalhostThe HTTP POST LOCALHOST protocol.
Caution noteCaution

See the Remarks section. This value only checks the request's host header to mitigate only browser-redirect attacks. Authentication and authorization are still required to restrict access to a Web service.

HttpSoap12The HTTP SOAP version 1.2 protocol.
AnyHttpSoapAny version of the HTTP SOAP protocol.
Caution noteCaution

Using the HttpPostLocalhost value of this enumeration does not prevent access to the test or web service from remote computers. This value checks only the host header of the request; no other validation, authentication, or authorization checks are performed. This check mitigates only browser-based redirection attacks. Authentication and authorization are still required to restrict access to a Web service.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.