WSE TimeStamp validation errors

When its about time to deploy WSE projects most of the pepole will notice several errors regarding the message timestamp.

Each WSE message has its own time stamp which is checked when the message being recived at the server side. The problem arises from this check are because not all of clocks in the computers around the glob syncronized to the same time.

I havent found a way to disable this check but was able to find a way to extend it beyone the default 5 min.
Add the following line to the config file:

  <security>
    <timeToleranceInSeconds>new timeout value</timeToleranceInSeconds>
  </security>
</microsoft.web.services2>

The new timeout value is in sec so for 24hr just enter 86400, i think thats should be enough.

From MSDN:

Use the <timeToleranceInSeconds> element when there is a clock difference between the SOAP message sender and receiver. WSE uses the <timeToleranceInSeconds> element when it compares the current time against the expiration time for all security tokens and against the creation time for post-dated security tokens. The default time buffer is five minutes. That is, WSE uses the <timeToleranceInSeconds> element to determine the time buffer of when a security token or SOAP message is valid.

 

2 Comments

Comments have been disabled for this content.