2008年3月21日 星期五

"開放Web Services遠端連線"的服務

Visual Studio 2005開發Web Services
如果你沒有加入以下程式碼  將無法存取遠端的Web Services
會收到這段類似訊息  本機服務只允許在local端 之類的訊息
必須在 加入幾行程式碼
1. 找出你要遠端存取的Web Services資料夾,通常是在C:\\Inetpub\wwwroot\你命名的資料夾
裡的 "Web.Config" and Open it
2.在  之間打入以下程式碼

<!--


<!--

允許遠端存取Web Services

-->


<webServices>

<protocols>

<add name="HttpPost" />

<add name="HttpGet" />

<add name="HttpSoap" />

<add name="Documentation" />

</protocols>

</webServices>


<!--

這是我遇到的一個不知名的問題

-->

<customErrors mode="Off">

</customErrors>



-->

沒有留言: