user222427
user222427

Reputation:

The type or namespace name 'ReportingServiceSoapClient' could not be found

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;
                    }
                }

            }

Upvotes: 2

Views: 2364

Answers (1)

user222427
user222427

Reputation:

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.

Upvotes: 1

Related Questions