调用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在同一台机器上访问正常,但是如果不在同一台服务器则报以上错误,请高手指点!