Web Service Enhancements dilemma
I have been trying to use Web Service Enhancements 2.0 SP3, to authenticate and authorize users to use my web services. I have created my web service class on the server side also using WSE.
On the client side I have created a proxy to access the web services. I have also managed to create the security token to authenticate users. However, when I try to add the token to the request context, the code does not compile. The code snippet is given below;
WebserviceClass ws = new WeserviceClass();
UsernameToken token = new UsernameToken(Username,hashedPassword,PasswordOpti on.SendHashed);
It says that "RequestSoapContext" is not defined for "ws" object.
Because of this error users aren't getting authenticated and no one is able to access my web services.