<add> Element for <output>
Adds a custom filter for SOAP messages being sent.
<microsoft.web.services2> Element
<filters> Element
<output> Element
<add type="type,assembly name" />
Attributes and Elements
Attributes
Attribute | Description |
---|---|
Type |
Required attribute. Specifies the type implementing the custom filter. The type must inherit from the SoapOutputFilter class. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
Specifies the custom filters applied to SOAP messages sent by WSE. |
Remarks
Before adding the <add> element for the <output> element to a configuration file, you must add the microsoft.web.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).
Example
The following code example specifies that the custom filter CustomFilter
runs when sending SOAP messages.
<configuration>
<microsoft.web.services2>
<filters>
<output>
<add type="CustomFilter,CustomFilterAssembly" />
</output>
</filters>
</microsoft.web.services2>
</configuration>