EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Signing SOAP message with timestamp

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
Posted: 07/15/2014 00:50:47
by Popeye  (Basic support level)
Joined: 10/22/2010
Posts: 10

Hi all,
I'm trying SecureSOAP.NET sample to sign soap message. I have a question. How can append timestamp in signature like below.
Thanks for help

      <wsu:TimeStamp wsu:id="TimeStamp-7eea0ee2-38fa-4c44-923d-dd6aea8ca424">
Posted: 07/15/2014 02:48:48
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us.

How can append timestamp in signature like below.

After TElXMLSOAPClient.GenerateMessage() method and before SendMessage() method you can use a following code to add a timestamp:
int k = FSOAPClient.SOAPMessage.AddSecurityHeader();
TElXMLWSUTimestamp Timestamp = new TElXMLWSUTimestamp();
Timestamp.CreatedUTC = DateTime.UtcNow;
Timestamp.ExpiresUTC = ...;

The only thing, that in this case a Header element will be created after the Body element, this issue should be fixed in the upcoming release.



Topic viewed 714 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!