2010-07-16 37 views
4

我在调用由SSRS 2005提供的ReportExecutionService2005 Web服务的LoadReport()方法时收到以下异常;SSRS Web服务LoadReport()异常正在投掷

服务器无法处理服务器无法识别的HTTP头SOAPAction的价值

任何想法可能会导致此?我的C#代码看起来像这样;

string _reportName = "/FolderName/ReportName"; 
string _historyID = null; 
WebServiceProxy.RSExec.ExecutionInfo _executionInfo = null; 

_executionInfo = rsExec.LoadReport(_reportName, _historyID); 

所有凭证都是使用;

System.Net.CredentialCache.DefaultCredentials; 

回答

11

原来我对执行服务使用了错误的URL。对于任何其他绊倒这个问题的人,确保你使用正确的URL!

 
ReportingService2005 = http://<server name>/ReportServer/ReportService2005.asmx 
ReportExecution2005 = http://<server name>/ReportServer/ReportExecution2005.asmx 
+0

谢谢。我疯了,为什么我没有得到我想要的方法。 – Pradeep 2014-12-03 05:40:44