Partager via


<remove> Element for <protocols> 

Removes a specified protocol for handling request and response data from within the scope of the configuration file. A protocol can be used to associate request data with a method and its parameters and to associate response data with the method and its return value.

<remove name="protocol name"/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

name

Required attribute.

The name of the protocol to remove.

Child Elements

None.

Parent Elements

Element Description

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

protocols

Specifies the protocols that an ASP.NET Web service can use to receive request data sent from a client and return response data. A protocol can be used to associate request data with a method and its parameters and to associate response data with the method and its return value.

system.web

Specifies the root element for the ASP.NET configuration section.

webServices

Controls the settings of Web services deployed using ASP.NET and of Web service clients running on the .NET Framework.

Example

The following example removes the HttpPost protocol from all applicable Web services.

<configuration>
   <system.web>
      <webServices>
         <protocols>
            <remove name="HttpPost"/>
         </protocols>
      <webServices>
   </system.web>
</configuration>

See Also

Reference

<webServices> Element
<protocols> Element

Other Resources

ASP.NET Configuration Settings
XML Web Services Created Using ASP.NET and XML Web Service Clients
ASP.NET Configuration