Share via


<defaultTtlInSeconds> Element

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

<microsoft.web.services3> Element
  <security> Element

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

Attributes and Elements

Attributes

Attribute Description

value

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

Child Elements

None

Parent Elements

Element Description

<security> Element

Controls the security settings for a WSE application.

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.services3>
    <security> 
      <defaultTtlInSeconds value="120" />
    </security>
  </microsoft.web.services3>
</configuration>

See Also

Reference

TtlInSeconds
<security> Element