WebService只能在本地使用,沒法經過網絡訪問的解決辦法

問題描述:WebService只能在本地使用,沒法經過網絡訪問。
解決方案:在web.config的<system.web></system.web>中間加入以下配置節內容:
<webServices>
         <protocols>
            <add name="HttpSoap"/>
            <add name="HttpPost"/>
            <add name="HttpGet"/>
            <add name="Documentation"/>
         </protocols>
</webServices>
相關文章
相關標籤/搜索