Click here to Skip to main content
13,093,254 members (83,346 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
I have web service developed in .net. I want to hide web method parameters when .asmx is opened through browser?
Posted 8-Apr-12 15:19pm
rbanda273
Updated 1-Aug-16 0:48am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

In your web.config add this:
 
<webServices>
<protocols>
    <remove name="HttpPostLocalhost"/>
</protocols>
</webServices>
 
 Put it right above </system.web>
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Hi,

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

<webservices>
      <wsdlhelpgenerator href="DenyBrowsing.aspx" />
</webservices>
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 1 Aug 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100