little help with converting WSE 3.0 from WSE 2.0

I have this code part from a WSE 2.0 example:

SampleWSE.Service1Wse proxy = new SecureWSClient.SampleWSE.Service1Wse();
proxy.RequestSoapContext.Security.Tokens.Add(new UsernameToken(name,
password, PasswordOption.SendHashed));
proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds = 300;

Console.WriteLine(proxy.Hello(name));

im using WSE 3.0 and im getting an error message saying:

Error 2 'Messenger.SampleWSE.Service1Wse' does not contain a definition for 'RequestSoapContext'

any ideas what should I use for WSE 3.0

Snippet taken from this tutorial:http://www.thecodeproject.com/soap/wssecurity_usernametokens.asp

Thanks for your time.



Answer this question

little help with converting WSE 3.0 from WSE 2.0