Adding propies to web services
-
I have a set of web services that need to know who the user is who called them (for enforcing rights in the app, as well as auditing). I tried to add a property to the web service's class. It compiles, but it is not exposed when I try to call it from the client app. Is there a way to do this, or should I add a parameter to my methods to pass the user id ?
Johan Lombaard Only two things are infinite, the universe and human stupidity, and I'm not sure about the former - Albert Einstein
-
I have a set of web services that need to know who the user is who called them (for enforcing rights in the app, as well as auditing). I tried to add a property to the web service's class. It compiles, but it is not exposed when I try to call it from the client app. Is there a way to do this, or should I add a parameter to my methods to pass the user id ?
Johan Lombaard Only two things are infinite, the universe and human stupidity, and I'm not sure about the former - Albert Einstein
Properties are not exposed. Put a parameter in the method instead.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions