Share via


<executionTimeoutInSeconds> Element

Specifies the maximum amount of time that it takes to process a SOAP message using the TCP protocol.

<microsoft.web.services3> Element
  <messaging> Element

<executionTimeoutInSeconds value />

Attributes and Elements

Attributes

Attribute Description

value

Required attribute. Indicates the maximum number of seconds that WSE will spend processing a message before the thread processing the SOAP message is shut down. A value of -1 means there is no limit. The default value is 90.

Child Elements

None

Parent Elements

Element Description

<messaging> Element

Controls the messaging settings for the Microsoft Web Services Enhancements.

Remarks

The value of the <executionTimeoutInSeconds> element does not control the execution timeout for Web services created using ASP.NET.

WSE checks for threads that are processing SOAP messages and have exceeded the specified timeout at 15 second intervals. Therefore, a thread may continue to process for up to 15 seconds beyond the specified timeout.

When a thread exceeds the specified limit, the thread is aborted and a SOAP fault is returned to the sender with a SOAP fault code that indicates that the server is unavailable.

Before adding the <executionTimeoutInSeconds> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For details about adding the microsoft.web.services3 configuration section handler, see <section> Element.

Example

The following code example specifies that messages must be processed in less than 60 seconds.

<configuration>
  <microsoft.web.services3>
    <messaging>
      <executionTimeoutInSeconds value="60" />
    </messaging>
  </microsoft.web.services3>
</configuration>

See Also

Reference

<messaging> Element