ReportingService Sinfi uchun nom maydoni

ReportingService http://msdn.microsoft.com/en-us/library/aa258073 (v = SQL.80) .aspx .

Bu yerda ko'rsatmalarga rioya qilishga harakat qildim http://msdn.microsoft.com/en- biz/kutubxona/aa237438 (v = sql.80) .aspx lekin konsoli ilovasini yaratganimda ko'rsatadigan Veb xizmatini qo'shish variantini yo'q.

Xizmat qaydnomasi mavjud. Buning o'rniga men foydalanmoqchimi?

4

2 javoblar

you have a full example on how to do this from a Console Application in MSDN, here: ReportExecutionService.Render Method which also requires you to read this one: http://msdn.microsoft.com/en-us/library/ms160695.aspx

Umuman olganda, siz .NET 4 Console ilovasini yaratgan bo'lsangiz, Solish Explorer-dagi Resurslar-ni o'ngga bosishingiz va Xizmatga Qoidalar Qo'shish-ni tanlashingiz mumkin, faqat WCF uchun emas, balki Web Services bilan ham ishlaydi.

SSRS 2005 yoki 2008 ishlaydigan hisobot server uchun ushbu veb-xizmatidan foydalanish quyidagi shaklga ega:

http: //myserver/reportserver/ReportExecution2005.asmx

Yuqorida bog'langan sahifalarni aylantirish uchun quyidagi konsol ilovasining o'rnini topish mumkin ...

static void Main(string[] args)
{
  ReportExecutionService rs = new ReportExecutionService();
  rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
  rs.Url = "http://myserver/reportserver/ReportExecution2005.asmx";
  ...
  ...
6
qo'shib qo'ydi

Loyiha ob'ektini o'ng tugmasini bosib, "Xizmat uchun ma'lumotni qo'shish"

enter image description here

Muqobil bir yechim sifatida wsdl.exe vositasi bilan kod yaratishingiz mumkin, bu odatda SSRS uchun nima qilishim kerak.

Misol uchun, VS buyruq irodasi:

wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2010" http:///reportserver/reportservice2010.asmx?wsdl
</code></pre>

<p><a href="http://msdn.microsoft.com/en-us/library/ms155134.aspx"> "SSRS uchun veb-xizmati proksi-serverini yaratish" haqida batafsil ma'lumot </a>.</p>
1
qo'shib qo'ydi