WebServiceProtocols 枚举

定义

指定传输协议,协议用于解密客户端浏览器在 HTTP 请求中发送的数据。Specifies the transmission protocols that are used to decrypt data sent from a client browser in the HTTP request.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class WebServiceProtocols
[System.Flags]
public enum WebServiceProtocols
type WebServiceProtocols = 
Public Enum WebServiceProtocols
继承
WebServiceProtocols
属性

字段

AnyHttpSoap 33

任何 HTTP SOAP 协议版本。Any version of the HTTP SOAP protocol.

Documentation 8

Web 服务文档协议。The Web Services Documentation protocol.

HttpGet 2

HTTP GET 协议。The HTTP GET protocol.

HttpPost 4

HTTP POST 协议。The HTTP POST protocol.

HttpPostLocalhost 16

HTTP POST LOCALHOST 协议。The HTTP POST LOCALHOST protocol.

注意:此值仅检查请求的主机标头,仅缓解浏览器重定向攻击。CAUTION: This value only checks the request's host header to mitigate only browser-redirect attacks. 仍然需要身份验证和授权来限制对 Web 服务的访问。Authentication and authorization are still required to restrict access to a Web service.

HttpSoap 1

HTTP SOAP 协议。The HTTP SOAP protocol.

HttpSoap12 32

HTTP SOAP 协议 1.2 版。The HTTP SOAP version 1.2 protocol.

Unknown 0

未知的协议。Unknown protocol.

注解

注意

使用此枚举的 HttpPostLocalhost 值不会阻止从远程计算机访问测试或 web 服务。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. 仍然需要身份验证和授权来限制对 Web 服务的访问。Authentication and authorization are still required to restrict access to a Web service.

适用于