<add> Element for <soapExtensionTypes>
Adds a specified SOAP extension class that provides extended processing of SOAP messages on the Web service or client.
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
|
type |
Required attribute. Specifies the SOAP extension class to add. The type attribute value must be on one line, and include the fully qualified type name. When the assembly is placed in the Global Assembly Cache (GAC), it must also include the version, culture and public key token of the signed assembly. |
|
priority |
Required attribute. Along with group, specifies the relative order in which a SOAP extension runs when multiple SOAP extensions are configured to run. 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 |
Required attribute.
|
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. |
|
soapExtensionTypes |
Specifies the SOAP extensions used to inspect or modify the SOAP message during processing on the Web service or client. SOAP extensions augment the functionality of Web services. |
|
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. |
The following example adds a SOAP extension class. Note that the type value must be on one line.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="Contoso.Extensions.MySoapExtension, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="2" group="0"/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>