我已经放弃了这一点。我知道这是Reporting Services网站参考,但是我知道这不是下面的两个URL。
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;
}
}
}
最佳答案
我的天啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
我想要更多的挫败感。区别仅在于此。您必须添加reportserv/reportserver/ReportService.asmx
作为服务引用而不是Web引用。如果将其添加为网络参考,则将无法访问它。
关于c# - 找不到类型或 namespace 名称“ReportingServiceSoapClient”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12056562/