如题。

解决方案 »

  1.   

    通过配置web.config或Machine.config 可以禁用http方式访问webservice。
    http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpguide/html/cpconconfigurationoptionsforaspnetwebservices.asp
      

  2.   

    修改 Web.config 的 webServices 节以显式删除协议设置。以下示例显式删除了 HTTP-POST 和 HTTP-GET 协议:<webServices>
         <protocols>
           <remove name="HttpPost" />
           <remove name="HttpGet" />
         </protocols>
    </webServices>