调用WebService报错,提示“Server was unable to process request”
最近在做webservice程序,使用web页面调用webservice报错,提示“Server was unable to process request. ---> Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”源错误:
行 146: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAllScore", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
行 147: public System.Data.DataSet GetAllScore(string username, string pwd) {
行 148: object[] results = this.Invoke("GetAllScore", new object[] {
行 149: username,
行 150: pwd});
其中username和pwd两个参数是从webconfig文件中读取,当调用webservice的页面和webservice在同一台机器易做图问正常,但是如果不在同一台服务器则报以上错误,请高手指点! --------------------编程问答-------------------- --------------------编程问答-------------------- <system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>
配置文件改下就OK! --------------------编程问答-------------------- 这个问题得到解决么?我也出现这样的问题,非常的郁闷
补充:.NET技术 , Web Services