Share via


<defaultTtlInSeconds> Element

Defines the default number of seconds that a SOAP message is valid after its creation.

<microsoft.web.services2> Element
  <security> Element

<defaultTtlInSeconds>default time-to-live value</defaultTtlInSeconds>

Attributes and Elements

Attributes

None

Child Elements

None

Parent Elements

Element Description

<security> Element

Controls the security settings for a WSE application.

Text Value

A text value is required. The text value specifies the the number of seconds after creation that every outgoing SOAP message is valid. The default value is 5 minutes (300 seconds).

Remarks

Applications can override the default in code, by setting the TtlInSeconds property of the SoapContext for a SOAP request.

Example

The following code example specifies that the default time-to-live value for SOAP messages in this application is 2 minutes.

<configuration>
  <microsoft.web.services2>
    <security> 
      <defaultTtlInSeconds>120</defaultTtlInSeconds>
    </security>
  </microsoft.web.services2>
</configuration>

See Also

Reference

TtlInSeconds
<security> Element