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一直出现上述错误,不知是何原因?希望大家帮帮我
3 个解决方案
#2
Web service没有配置好,或者是Web.config中的Web Service的Url错了。
通常,我们会现在IE中访问Web.config中的Web Service的Url,确认没有问题再调试客户端程序
通常,我们会现在IE中访问Web.config中的Web Service的Url,确认没有问题再调试客户端程序
#3
文件不在
web.config中的配置正确
<configuration>
<appSettings>
<add key="URL" value="" />
</appSettings>
</configuration>
web.config中的配置正确
<configuration>
<appSettings>
<add key="URL" value="" />
</appSettings>
</configuration>
#1
#2
Web service没有配置好,或者是Web.config中的Web Service的Url错了。
通常,我们会现在IE中访问Web.config中的Web Service的Url,确认没有问题再调试客户端程序
通常,我们会现在IE中访问Web.config中的Web Service的Url,确认没有问题再调试客户端程序
#3
文件不在
web.config中的配置正确
<configuration>
<appSettings>
<add key="URL" value="" />
</appSettings>
</configuration>
web.config中的配置正确
<configuration>
<appSettings>
<add key="URL" value="" />
</appSettings>
</configuration>