I am trying to call the GetReportParameters method from the ReportingServices2005.asmx web service from another C# function and I am getting the following error:
System.NotImplementedException: The method or operation is not implemented.
I litterally just copied the code from Microsoft’s site here:
which is this code:
bool forRendering = false;
string historyID = null;
ParameterValue[] values = null;
DataSourceCredentials[] credentials = null;
ReportParameter[] parameters = null;
try
{
parameters = rs.GetReportParameters(reportName,historyID, forRendering, values,credentials);
if (parameters != null)
{
foreach (ReportParameter rp in parameters)
{
Console.WriteLine("Name: {0}", rp.Name);
}
}
}
catch (SoapException e)
{
error = e.Detail.InnerXml.ToString();
}
Where reportName is a string with the name of the report.
Any ideas??
Thanks in advance!
EDIT
Here is the full stack trace:
System.NotImplementedException: The method or operation is not implemented.
at Foo.Foo.ReportingService2005.GetReportParameters(String reportName, String historyID, Boolean forRendering, ParameterValue[] values, DataSourceCredentials[] credentials) in C:\Visual Studio Projects\Foo\Foo\Web References\Foo\Reference.cs:line 4112
at Foo.Foo.GetReportParameters(String username, String password, String reportName) in C:\Visual Studio Projects\Foo\Foo\Foo.asmx.cs:line 265
I deleted and re-added the Web Reference and this didn’t do the trick, but after lots of trial and error I noticed that
Were all referencing another Web Reference…. Not even sure how that’s possible.. But, I deleted the other Web Reference that had nothing to do with Reporting Services and all is now working.