Getting rid of the Expires node in the WS security header
Posted
by Nick
on Stack Overflow
See other posts from Stack Overflow
or by Nick
Published on 2010-03-08T15:48:56Z
Indexed on
2010/03/08
15:51 UTC
Read the original article
Hit count: 448
From the snippet below, how do i get rid of the <wsu:Expires> tag? I want to either get rid of it or pass it in as a empty element. It is a read only property in objClient.RequestSoapContext.Security.Timestamp.Expires. Any help is appreciated.
<wsse:Security soap:mustUnderstand="1">
<wsu:Timestamp wsu:Id="Timestamp-26d09d54-10ef-4141-aa2c-11c75ed8172b">
<wsu:Created>2010-03-08T15:32:16Z</wsu:Created>
<wsu:Expires>2010-03-08T15:37:16Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-7c9b80ec-98e9-4e41-af2e-ad37070cbdd3">
<wsse:Username>bubba</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">dsfdfsdfsfs+-dasdf=</wsse:Password>
<wsse:Nonce>QQ3C4HUfO2CyGx7HrjzMzg==</wsse:Nonce>
<wsu:Created>2010-03-08T15:32:16Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
© Stack Overflow or respective owner