星期三, 5月 06, 2009

開放遠端存取 WebService

如題,只要在 Web.Config 加入下列通訊協定:

<system.web>
    <webservices>
        <protocols>
           <add name="HttpPost">
           <add name="HttpGet">
        </protocols>
     </webservices>
</system.web>

這樣就可以用 HTTP Get or HTTP Post 來取得 WebService 的服務囉..

參考資訊:http://msdn.microsoft.com/zh-tw/library/4yx7be39(VS.80).aspx