發表文章

目前顯示的是有「逾時」標籤的文章

[C#]Client呼叫WebService時發生逾時作業

這個實作是使用VS2010寫的, 微軟在VS2010已將原本的ASP.NET WebService整合至WCF, 所以相關資料用WCF去找比較找得到。 [Server端] 1. web.config (在<system.web></system.web>之間) <httpRuntime executionTimeout="1000"/>, 單位為秒, 設定仍無效 <sessionState mode="InProc" timeout="200" cookieless="UseCookies"></sessionState>, 單位為分鐘, 設定仍無效 [Client端] 1.修改app.config 引用WebService後, app.config會增加下列的XML <system.serviceModel>     <bindings>       <basicHttpBinding>         <binding name="WebService1Soap"/>         <binding name="Service1Soap" />       </basicHttpBinding>     </bindings>     <client>       <endpoint address="http://127.0.0.1/ws/WebService1.asmx" binding="basicHttpBinding"         bindingConfiguration="WebService1Soap" contract="rsService1.WebService1Soap"         name="WebService1Soap"...