Share via


<add> Element for <transports>

Adds a SOAP transport to the system.

<microsoft.web.services2> Element
  <messaging> Element
    <transports> Element

<transports>
  <add scheme type >
    <connectionLimit>
    <defaultPort> Element
    <exclusiveAddressUse> Element
    <hosts>
      <allow>
      <deny>
    </hosts>
    <idleTimeout>
    <noDelay> Element
    <receiveTimeout>
    <sendTimeout>
  </add>
</transports>

Attributes and Elements

Attributes

Attribute Description

scheme

Required attribute. The transport scheme to remove. Can be one of the WSE supported schemes or a custom transport scheme.

type

Optional attribute. When the scheme attribute refers to a custom transport scheme, the type attribute is required. The value of the type attribute must be the type implementing the custom transport, which must derive from ISoapTransport.

Child Elements

Element Description

<connectionLimit> Element

Optional element. Specifies the maximum number of connections made to and from an application that sends and/or receives SOAP messages using the TCP protocol.

<defaultPort> Element

Optional element. Specifies the default port for a connection.

<exclusiveAddressUse> Element

Optional element. Specifies a value indicating whether a channel is bound for exclusive access.

<hosts> Element

Optional element. Specifies which clients are allowed or denied access to a Web service.

<idleTimeout> Element

Optional element. Specifies a value indicating the time to idle out a connection.

<noDelay> Element

Optional element. Specifies a value indicating whether a delay occurs when send or receive buffers are not full.

<receiveTimeout> Element

Optional element. Specifies the maximum amount of time that WSE will take to receive a SOAP message using the TCP protocol.

<sendTimeout> Element

Optional element. Specifies the maximum amount of time that WSE will take to send a SOAP message using the TCP protocol.

Parent Elements

Element Description

<transports> Element

Controls the SOAP transport settings for the Microsoft Web Services Enhancements.

Example

The following code example adds the soap.tcp transport to the system with a default port value of 8081.

<configuration>
  <microsoft.web.services2>
    <messaging>
      <transports>
        <add scheme="soap.tcp" >
          <defaultPort value="8081" />
        </add>
      </transports>
    </messaging>
  </microsoft.web.services2>
</configuration>

See Also

Reference

<idleTimeout> Element
<noDelay> Element
<exclusiveAddressUse> Element
<defaultPort> Element