调用SSRS 2005提供的ReportExecutionService2005 Web服务的LoadReport()方法时,我收到以下异常;
System.Web.Services.Protocols.SoapException:服务器无法识别HTTP标头SOAPAction的值
任何可能导致此问题的想法?我的C#代码看起来像这样;
string _reportName = "/FolderName/ReportName";
string _historyID = null;
WebServiceProxy.RSExec.ExecutionInfo _executionInfo = null;
_executionInfo = rsExec.LoadReport(_reportName, _historyID);
使用;
设置所有凭据System.Net.CredentialCache.DefaultCredentials;
答案 0 :(得分:11)
原来我使用了错误的URL来执行服务。对于遇到此问题的其他任何人,请确保使用正确的网址!!!!
ReportingService2005 = http://<server name>/ReportServer/ReportService2005.asmx ReportExecution2005 = http://<server name>/ReportServer/ReportExecution2005.asmx