Share via


<receiveTimeout> Element

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

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

<receiveTimeout value />

Attributes and Elements

Attributes

Attribute Description

value

Required attribute. Specifies the maximum amount of time, in milliseconds, that WSE will take to receive a SOAP request sent using the TCP protocol. A value of -1 specifies there is no limit. The default value is 90,000 (90 seconds).

Child Elements

None

Parent Elements

Element Description

<add> Element for <transports>

Adds a SOAP transport to the system.

Remarks

The minimum and maximum values for the value attribute are 10,000 and 100,000 milliseconds, respectively.

When this timeout is exceeded, WSE aborts the TCP connection and generates an event log on the computer receiving the SOAP message.

Before adding the <receiveTimeout> 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 TCP connection is closed if it takes longer than 1 minute to send a SOAP message.

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

See Also

Reference

<transports> Element
<sendTimeout> Element