首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

System.Web.Services.Protocols.SoapException: 服务器无法处理请求解决方法

2013-01-26 
System.Web.Services.Protocols.SoapException: 服务器无法处理请求本帖最后由 Iceman0_0 于 2013-01-05 1

System.Web.Services.Protocols.SoapException: 服务器无法处理请求
本帖最后由 Iceman0_0 于 2013-01-05 11:52:32 编辑 webservice里的一个错误 
 之前这个网站是放在本地局域网里测试的 
 后来测试完之后 放到外网服务器上 就出现这个问题了 
 求高人指教。。。


有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> 不支持关键字: “userid”。
   在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   在 MainForm.w2update.Winner2UpdateService.CheckUserPWD(String userID, String pwd, String& mess, String& name, String& company, String& phone, String& email, String& mobile, String& address, String& keyID, String& keyCode, Int32& ActivateSuccess) 位置 D:\code\Winner\PPLAnalyse\MainForm\Web References\w2update\Reference.cs:行号 731
   在 MainForm.fmLogin.btnLogin_Click(Object sender, EventArgs e) 位置 D:\code\Winner\PPLAnalyse\MainForm\fmLogin.cs:行号 43
   在 System.Windows.Forms.Control.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.PerformClick()
   在 System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
   在 System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
   在 System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
   在 System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   在 System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   在 System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

上面错误是我做登陆操作的时候 竟然弹出找不到关键字“userid”
求高人指点。。。。。。。 webservice
[解决办法]
webservice本身有问题吗?看你的堆栈是winform引用webservice报的异常。
Winform Button Onclick事件咋写的?
[解决办法]
System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> 不支持关键字: userid

你查查你的代码,怎么使用 userid 的?
[解决办法]
查查userid 参数
[解决办法]
不是找不到,是不支持。看清楚提示,参数定义的虽然是userID
[解决办法]
你在你本地重新生成下webservice的代理后再次编译发布看看。可能是对方之前提供给你的wsdl中是userid,而实际放上去的时候写的是userID

热点排行