How to provide security for web methods in the webservice

Posted by Gsrinivas under ASP.NET on 8/30/2009 | Views : 3250 | Status : [Member] | Replies : 2
Hi,
if suppose i have 4 web methods in my web service. i want to expose only two methods to my webservice consumers.so how can i achive this?

Thanks
Srinivas




Responses

Posted by: Vuyiswamb on: 8/31/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Morning Gsrinivas

Remember that when you create a Webservice, you have an option to expose certain methods to the outside world by using the

[WebMethod]


But if a Function inside the webservice declaration has no tag like that. what it means , is that this method will not be available in the outside world.

Thank you for posting at Dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Gsrinivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakhangarg on: 8/31/2009 [Member] [Moderator] Silver

Up
0
Down
Hi -

Skip the [WebMethod] Written above the Method if you don't want to Expose ant method.

Thanks & Regards
Lakhan Pal Garg

Gsrinivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response