Share via


<add> Element for <input>

Adds a custom filter for incoming SOAP messages.

<microsoft.web.services2> Element
  <filters> Element
    <input> 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 SoapInputFilter class.

Child Elements

None

Parent Elements

Element Description

<input> Element

Specifies the custom filters applied to SOAP messages received by WSE.

Remarks

Before adding the <add> element for the <input> 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>

See Also

Concepts

Creating Custom Filters with WSE