2
votes

I've about given up on this one. I know this is a reporting services web reference however I know it's not either of these below urls.

reportserv/ReportServer/ReportExecution2005.asmx
reportserv/reportserver/ReportService.asmx
reportserv/reportserver/ReportService2005.asmx?wsdl

Does anybody happen to know the URL for this reference? Or does anybody know how to view all the web references on a server?

ReportingServiceSoapClient rs = new ReportingServiceSoapClient();

The type or namespace name 'ReportingServiceSoapClient' could not be found I'm telling you ReportingServicesSoapClient and ReportInformation is not there.

enter image description here

enter image description here

I'm using this to view all folders inside of a reporting serices.

ReportingServiceSoapClient rs = new ReportingServiceSoapClient();
            rs.ClientCredentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;

            CatalogItem[] HomeFolders = null;
            string reportPath = "/";
            rs.ListChildren(reportPath, true, out HomeFolders);

            foreach (var homeF in HomeFolders)
            {
                if (homeF.Type.ToString() == "Folder")
                {
                    Console.WriteLine(homeF.Path + "=> " + homeF.Name + " => is this your home folder? (y/n)");
                    bool ynLoop = true;
                    while (ynLoop == true)
                    {
                        var readL = Console.ReadLine();
                        if (readL == "y")
                        {
                            ynLoop = false;
                            TargetHomeFolder = homeF.Path.ToString();
                        }
                        else if (readL == "n")
                        {
                            ynLoop = false;
                        }
                        else
                        {
                            Console.WriteLine("You must use y or n");
                        }
                    }
                    if (TargetHomeFolder != "")
                    {
                        break;
                    }
                }

            }
1
The first one you said is correct, myServer/ReportServer/ReportExecution2005.asmx. Are you sure the server you're using have SSRS installed correctly? - Fabio
Here it seems like second reference is okay: a33ik.blogspot.com/2009/08/… - Dmitry Reznik
@FabioGouw Yes i'm sure see edit - user222427
+1 This question made me realize that there are 2 SSRS web services, ReportExecution2005.asmx and ReportService2005.asmx, each one with its own purpose :-) Until today, I've needed to use only the first one. - Fabio

1 Answers

1
votes

OMG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I want to get some more frustration out. The difference is simply this. You have to add reportserv/reportserver/ReportService.asmx as a Service reference not a web reference. If you add it as a web reference you will not be able to access it.