且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在浏览器中隐藏Web方法参数?

更新时间:2023-11-27 21:04:10

在你的web.config中添加:

< webServices >
< 协议 >
< remove 名称 = HttpPostLocalhost / >
< / protocols >
< / webServices >

将它放在< / system.web >






包含拒绝消息的webform,并在web.config中使用以下



&LT; web服务&GT; 
< wsdlhelpgenerator href = DenyBrowsing.aspx />
< / webservices > 跨度>


I have web service developed in .net. I want to hide web method parameters when .asmx is opened through browser?

In your web.config add this:

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

 Put it right above </system.web>


Hi,

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

<webservices>
      <wsdlhelpgenerator href="DenyBrowsing.aspx" />
</webservices>