Export (0) Print
Expand All
Expand Minimize

<webServices> Element

Controls the settings of XML Web services created using ASP.NET.

<configuration>
   <system.web>
      <webServices>

<webServices>
   <protocols>
      <add name="protocol name"/>
   </protocols>
   <serviceDescriptionFormatExtensionTypes> 
   </serviceDescriptionFormatExtensionTypes>
   <soapExtensionTypes>
      <add type="type"/>
   </soapExtensionTypes>
   <soapExtensionReflectorTypes>
      <add type="type"/>
   </soapExtensionReflectorTypes>
   <soapExtensionImporterTypes>
      <add type="type"/>
   </soapExtensionImporterTypes>
   <wsdlHelpGenerator href="help generator file"/>
</webServices>

Subtags

Subtag Description
<protocols> 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.
<serviceDescriptionFormatExtensionTypes> Specifies the service description format extension to run within the scope of the configuration file.
<soapExtensionTypes> Specifies the SOAP extensions to run with all XML Web services within the scope of the configuration file.
<soapExtensionReflectorTypes> Specifies the SOAP extensions to run when a service description is generated for all XML Web services within the scope of the configuration file.
<soapExtensionImporterTypes> Specifies the SOAP extensions to run when a service description for an XML Web service within the scope of the configuration file is accessed to create a proxy class.
<wsdlHelpGenerator> The XML Web service Help page (an .aspx file) that is displayed to a browser when the browser navigates directly to an ASMX page.

Example

The following example specifies XML Web service configuration settings.

<configuration>
   <system.web>
      <webServices>
         <protocols>
            <add name="HttpGet"/>
            <add type="HttpPost"/>
            <add type="Documentation"/>
         </protocols>
         <serviceDescriptionFormatExtensionTypes>
         </serviceDescriptionFormatExtensionTypes>
         <soapExtensionTypes>
         </soapExtensionTypes>
         <soapExtensionReflectorTypes>
         </soapExtensionReflectorTypes>
         <soapExtensionImporterTypes>
         </soapExtensionImporterTypes>
         <wsdlHelpGenerator href="DefaultSdlHelpGenerator.aspx"/>
      </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

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

Show:
© 2015 Microsoft