SSRS Web Service LoadReport() Exception Being Thrown
Asked Answered
G

1

5

I am getting the following exception when calling the LoadReport() method of the ReportExecutionService2005 web service provided by SSRS 2005;

System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction

Any ideas what may cause this? My C# code looks like this;

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

_executionInfo = rsExec.LoadReport(_reportName, _historyID);

All the credentials are set using;

System.Net.CredentialCache.DefaultCredentials;
Greenman answered 16/7, 2010 at 11:34 Comment(0)
G
11

Turns out I was using the wrong URL for the execution service. For anyone else that stumbles across this problem, make sure you use the right url's!!!!

ReportingService2005 = http://<server name>/ReportServer/ReportService2005.asmx
ReportExecution2005 = http://<server name>/ReportServer/ReportExecution2005.asmx
Greenman answered 16/7, 2010 at 13:26 Comment(1)
Thanks. I was going crazy why I am not getting the methods I want.Geognosy

© 2022 - 2024 — McMap. All rights reserved.