Adding a Timestamp Adding a Timestamp To add a timestamp to the WS-Security header element, do the following in your web client or web service: Call the Create() class method of %SOAP.Security.TimestampOpens in a new tab. This method takes one optional argument (the expiration interval in seconds). The default expiration interval is 300 seconds. For example: set ts=##class(%SOAP.Security.Timestamp).Create() This method creates an instance of %SOAP.Security.TimestampOpens in a new tab, sets the values for its Created, Expires, and TimestampAtEnd properties, and returns the instance. This instance represents the <Timestamp> header element. Call the AddSecurityElement() method of the SecurityOut property of your web client or web service. For the method argument, use the %SOAP.Security.TimestampOpens in a new tab instance you created. For example: do client.SecurityOut.AddSecurityElement(ts) Send the SOAP message. See the general comments in Adding Security Header Elements. If you include a <Timestamp> element, InterSystems IRIS forces it to be first within <Security>.