Compartilhar via


<protocols> Element

Specifies the transmission protocols that ASP.NET can use to decrypt data sent from a client browser in the HTTP request. The data sent in an HTTP request to an XML Web service can contain method calls and parameters.

<configuration>
   <system.web>
      <webServices>
         <protocols>

<protocols>
   <add name="protocolname"/>
   <remove name="protocolname"/>
   <clear>   
</protocols>

Subtag

Subtag Description
<add> Adds a transmission protocol to the list of supported protocols.
<remove> Removes a single protocol from a Web service's list of supported transmission protocols.
<clear> Removes all protocols from a Web service's list of supported transmission protocols.

Example

The following example enables all four currently supported protocols.

<configuration>
   <system.web>
      <webServices>
         <protocols>
            <add name="HttpSoap"/>
            <add name="HttpPost"/>
            <add name="HttpGet"/>
            <add name="Documentation"/>
         </protocols>
      </webServices>
   <system.web>
</configuration>

Requirements

Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.Services.Configuration.WebServicesConfigurationSectionHandler

See Also

<webServices> Element |ASP.NET Configuration | ASP.NET Settings Schema