Hi
I have 10 Web methods in a WebService.I need to expose only 5 of them to a particular Client ans rest to another client.How can I do this in asp.net 2.0?? Please advice.
Regards
Sachin Kalia
How to expose limited no of Web method in a WebService?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Posted Jun 14, 2011, 12:53 AM EDT
But you can control the execution by using adding role based security details in the web method attribute.
[WebMethod]
[PrincipalPermission(SecurityAction.Demand,Name="MuraliLaptop\\Muralidharand")]
To know more about PrincipalPermission ,refer this : http://msdn.microsoft.com/en-us/library/765xy944.aspx
HTH.