Compartilhar via


<add> Element for <soapExtensionTypes>, <soapExtensionImporterTypes>, and <soapExtensionReflectorTypes>

Adds a SOAP extension to run with all XML Web services within the scope of the configuration file.

<configuration>
   <system.web>
      <webServices>
         <soapExtensionTypes>
            <add>

         <soapExtensionImporterTypes>
            <add>

         <soapExtensionReflectorTypes>
            <add>

<add type="soap extension class" 
     priority="number"
     group="0|1"/>

Required Attributes

Attribute Value Description
type     Specifies the SOAP extension class to add.
priority     Indicates the relative order in which a SOAP extension runs when multiple SOAP extensions are specified. Within each group, the priority attribute distinguishes the overall relative priority of the SOAP extension. A lower priority number indicates a higher priority for the SOAP extension. The lowest possible value for the priority attribute is 1.
group     Along with priority, specifies the relative order in which a SOAP extension runs when multiple SOAP extensions are configured to run.
    0 Indicates that the SOAP extension executes in the group of SOAP extensions with the highest priority.
    1 Indicates that the SOAP extension executes in the group of SOAP extensions with the lowest priority.

Example

The following example adds a SOAP extension type.

<configuration>
   <system.web>
      <webServices>
         <soapExtensionType>
            <add name="TypeName" priority="2" group="0"/>
         </soapExtensionType>
      </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

<soapExtensionTypes> Element | <soapExtensionImporterTypes> Element | <soapExtensionReflectorTypes> Element | <webServices> | XML Web Services Created Using ASP.NET and XML Web Service Clients | ASP.NET Configuration | ASP.NET Settings Schema