<filters> Element
Controls the custom filters applied to SOAP messages sent and received by WSE applications.
<microsoft.web.services2> Element
<filters>
<input>
<add type="CustomFilter,CustomFilterAssembly" />
</input>
<output>
<add type="CustomFilter,CustomFilterAssembly" />
</output>
</filters>
Attributes and Elements
Attributes
None.
Child Elements
Element | Description |
---|---|
Optional element. Specifies the custom filters applied to SOAP messages received by WSE. Specify the type name and its assembly. The type specified by the type attribute must inherit from the SoapInputFilter class. |
|
Optional element. Specifies the custom filters applied to SOAP messages sent using WSE. Specify the type name and its assembly. The type specified by the type attribute must inherit from the SoapOutputFilter class. |
Parent Elements
Element | Description |
---|---|
Controls the configuration options defined by WSE. |
Remarks
Before adding the <filters> 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 SOAP messages are received.
<configuration>
<microsoft.web.services2>
<filters>
<input>
<add type="CustomFilter,CustomFilterAssembly" />
</input>
</filters>
</microsoft.web.services2>
</configuration>