首页 新闻 赞助 找找看

asp.net webservice如何禁用某个服务的Post、Get

0
悬赏园豆:20 [已关闭问题] 关闭于 2014-04-21 15:02

现有asp.net webservice应用程序下,有两个服务(a.asmx,b.asmx),

想实现a.asmx服务仅能使用soap协议访问,禁用post、get访问方式,

而b.asmx服务开放soap、post、get三种访问方式。

web.config的如下配置是全局的,有没有方法针对具体的服务区分设置呢?

<webServices>
<protocols>
<add name= "HttpPost"/>
<add name= "HttpGet"/>
</protocols>
</webServices>

水无声的主页 水无声 | 初学一级 | 园豆:92
提问于:2014-04-18 10:13
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册