Hi
Im trying to convert a webservice to use WSE security (username/password).
The webservice has a few webmethods, one that I want protect with a
username/password.
On the client side Im writing code like this - as shown in all examples I've
found:
****
WebService ws = new WebService();
UsernameToken userToken;
userToken = new UsernameToken(" jan", "jan", PasswordOption. SendHashed);
ws.RequestSoapC ontext.Security .Tokens.Add(use rToken);
*********
But the compiler complains that "ws does not contain a definition for
'RequestSoapCon text'" ?
Any ideas?
Best regards
Jan
Im trying to convert a webservice to use WSE security (username/password).
The webservice has a few webmethods, one that I want protect with a
username/password.
On the client side Im writing code like this - as shown in all examples I've
found:
****
WebService ws = new WebService();
UsernameToken userToken;
userToken = new UsernameToken(" jan", "jan", PasswordOption. SendHashed);
ws.RequestSoapC ontext.Security .Tokens.Add(use rToken);
*********
But the compiler complains that "ws does not contain a definition for
'RequestSoapCon text'" ?
Any ideas?
Best regards
Jan