我已经快放弃这个了。我知道这是一个报告服务网络参考,但我知道它不是以下网址中的任何一个。
reportserv/ReportServer/ReportExecution2005.asmx
reportserv/reportserver/ReportService.asmx
reportserv/reportserver/ReportService2005.asmx?wsdl
有没有人碰巧知道这个参考的 URL?或者有人知道如何查看服务器上的所有 Web 引用吗?
ReportingServiceSoapClient rs = new ReportingServiceSoapClient();
找不到类型或命名空间名称“ReportingServiceSoapClient”我告诉你 ReportingServicesSoapClient 和 ReportInformation 不存在。
我正在使用它来查看报告服务中的所有文件夹。
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;
}
}
}