我已经放弃了这个。我知道这是一个报告服务网站参考,但我知道这不是以下任何一个网址。
reportserv /的ReportServer / ReportExecution2005.asmx
reportserv /的reportserver / ReportService.asmx
reportserv /的reportserver / ReportService2005.asmx?WSDL
是否有人碰巧知道此引用的网址?或者有人知道如何查看服务器上的所有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;
}
}
}
答案 0 :(得分:1)
OMG !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
我想要更加沮丧。差别就是这个。您必须将reportserv/reportserver/ReportService.asmx
添加为服务参考,而不是网络参考。如果您将其添加为Web引用,则无法访问它。