紧急求助:The request failed with HTTP status 400: Bad Request.

phpcrazy86 2009-11-10 04:10:29
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The request failed with HTTP status 400: Bad Request.

Source Error:


Line 1833: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.zii.com/ReportGeneralInquiry", RequestNamespace="http://www.zii.com", ResponseNamespace="http://www.zii.com", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 1834: public bool ReportGeneralInquiry(string emailId, string firstName, string lastName, string userName, string issueDescs, string issueTitle, out string CaseNostr, out string customerCaseLink) {
Line 1835: object[] results = this.Invoke("ReportGeneralInquiry", new object[] {Line 1836: emailId,
Line 1837: firstName,


Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26a84a27\ccc009c6\App_WebReferences.iux74zmt.0.cs Line: 1835

Stack Trace:


[WebException: The request failed with HTTP status 400: Bad Request.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +533252
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204
Support.SupportService.ReportGeneralInquiry(String emailId, String firstName, String lastName, String userName, String issueDescs, String issueTitle, String& CaseNostr, String& customerCaseLink) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26a84a27\ccc009c6\App_WebReferences.iux74zmt.0.cs:1835
Support_support.imgSubmit_Click(Object sender, ImageClickEventArgs e) in e:\websites\ziicn\Support\support.aspx.cs:61
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


应用webservice一直出现上述错误,不知是何原因?希望大家帮帮我
...全文
2556 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wuyq11 2009-11-10
  • 打赏
  • 举报
回复
文件不在
web.config中的配置正确
<configuration>
<appSettings>
<add key="URL" value="" />
</appSettings>
</configuration>
宝_爸 2009-11-10
  • 打赏
  • 举报
回复
Web service没有配置好,或者是Web.config中的Web Service的Url错了。

通常,我们会现在IE中访问Web.config中的Web Service的Url,确认没有问题再调试客户端程序
PandaIT 2009-11-10
  • 打赏
  • 举报
回复

12,162

社区成员

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

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