调用WebService报错,提示“Server was unable to process request”

cooldoudou 2009-05-18 02:04:32
最近在做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在同一台机器上访问正常,但是如果不在同一台服务器则报以上错误,请高手指点!
...全文
1660 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiao_fan85 2009-12-04
  • 打赏
  • 举报
回复
这个问题得到解决么?我也出现这样的问题,非常的郁闷
flyerwing 2009-05-25
  • 打赏
  • 举报
回复
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>


配置文件改下就OK!

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧