hide method in webservice

Posted by Sugi under Web Services, Remoting on 9/26/2014 | Points: 10 | Views : 626 | Status : [Member] | Replies : 2
can we hide particular methods in webservice (visibility alone)?need examples




Responses

Posted by: A2H on: 10/5/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
You can hide the entire service description page from others by removing the "Documentation" protocol like given below.
<system.web.services>

<protocols>
<remove name="Documentation"/>
</protocols>
</system.web.services>



Thanks,
A2H
My Blog

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

Posted by: Shreedar on: 8/15/2015 [Member] Starter | Points: 25

Up
0
Down
Hi

In webservices we attribute the methods with [webmethod] which are visible to clients.

If you want to hide any particular method, then remove the [webmethod] attribute from that method.

Mark answer if you are satisfied.
'
Regards,
Sridhar Thota.

Regards

Sridhar Thota.
www.dotnet-sridhar.blogspot.com

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

Login to post response