Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
2.78/5 (2 votes)
See more:
I have web service developed in .net. I want to hide web method parameters when .asmx is opened through browser?
Posted
Updated 1-Aug-16 0:48am
v2

XML
In your web.config add this:

<webServices>
<protocols>
    <remove name="HttpPostLocalhost"/>
</protocols>
</webServices>

 Put it right above </system.web>
 
Share this answer
 
Hi,

Include a webform for deny message and Use following in web.config

C#
<webservices>
      <wsdlhelpgenerator href="DenyBrowsing.aspx" />
</webservices>
 
Share this answer
 
Comments
swathi(MCA) 27-Sep-16 5:58am    
Thanks, it's working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900