天天看點

Web.config中設定啟用webservice遠端調試通路

 在.NET 中已經預設将webservice的遠端調試功能關閉,有的時候我們需要遠端調試程式的時候,就需要打開此功能我們隻需在webservice的項目的中添web.config的<system.web>配置節下面加一下一段配置就OK了,代碼如下:

<system.web>

<compilation debug="true" />

<!--begin啟用webservice遠端通路-->

<webServices>

<protocols>

<add name="HttpSoap"/>

<add name="HttpPost"/>

<add name="HttpGet"/>

<add name="Documentation"/>

</protocols>

</webServices>

<!--end啟用webservice遠端通路-->

</system.web>