Za pomocą interfejsu API SOAP w aplikacji sieci Web
Dostęp można uzyskać pełną funkcjonalność serwer raportów API SOAP usług Reporting Services.Ponieważ usługa sieci Web, SOAP API można uzyskać łatwy dostęp zapewniające funkcje raportowania organizacji do swojego niestandardowych aplikacji biznesowych.Dostęp usługa sieci Web serwera raportów z aplikacji sieci Web w podobny sposób, z którego korzystasz API SOAP z Microsoft aplikacji systemu Windows.Using the Microsoft .NET Framework, you can generate a proxy class that exposes the properties and methods of the Report Server Web service and enables you to use a familiar infrastructure and tools to build business applications on Reporting Services technology.
Reporting Services Funkcje zarządzania raportu jest równie łatwo dostępny aplikacji sieci Web z aplikacji systemu Windows.Z aplikacji sieci Web można dodawać i usuwać elementów z bazy danych serwer raportów zestaw element zabezpieczeń, modyfikować elementy bazy danych serwer raportów, planowania i dostawy i więcej.
Włączanie personifikacji
Pierwszym krokiem w konfigurowaniu aplikacji sieci Web jest Włączanie personifikacji klient usługa sieci Web.With impersonation, ASP.NET applications can execute with the identity of the client on whose behalf they are operating.ASP.NET relies on Microsoft Internet Information Services (IIS) to authenticate the user and either pass an authenticated token to the ASP.NET application or, if unable to authenticate the user, pass an unauthenticated token.W każdym przypadek ASP.NET aplikacja personifikuje otrzymany token personifikacji jest włączenie.Personifikacja klient, można włączyć, modyfikując w sieci Web.plik konfiguracji aplikacji klient w następujący sposób:
<!-- Web.config file. -->
<identity impersonate="true"/>
Ostrzeżenie
Personifikacja jest domyślnie wyłączona.
For more information about ASP.NET impersonation, see the Microsoft .NET Framework SDK documentation.
Zarządzanie serwerem raportu za pomocą interfejsu API SOAP
Za pomocą aplikacji sieci Web do zarządzania serwer raportów i jego zawartość.Menedżer raportów, z Reporting Services, na przykład aplikacji sieci Web, która jest całkowicie budowana przy użyciu ASP.NET i API SOAP usług raportowania.Funkcje zarządzania raportu z Menedżer raportów można dodać do niestandardowej aplikacji sieci Web.For example, you might want to return a list of available reports in the report server database and display them in a ASP.NET Listbox control for your users to choose from.Poniższy kod, który łączy się z baza danych serwer raportów i zwraca listę elementów w baza danych serwer raportów.Raporty dostępne są następnie dodany do formantu Listbox Wyświetla ścieżka każdego raportu.
Private Sub Page_Load(sender As Object, e As System.EventArgs)
' Create a Web service proxy object and set credentials
Dim rs As New ReportingService2005()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Return a list of catalog items in the report server database
Dim items As CatalogItem() = rs.ListChildren("/", True)
' For each report, display the path of the report in a Listbox
Dim ci As CatalogItem
For Each ci In items
If ci.Type = ItemTypeEnum.Report Then
catalogListBox.Items.Add(ci.Path)
End If
Next ci
End Sub ' Page_Load
private void Page_Load(object sender, System.EventArgs e)
{
// Create a Web service proxy object and set credentials
ReportingService2005 rs = new ReportingService2005();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Return a list of catalog items in the report server database
CatalogItem[] items = rs.ListChildren("/", true);
// For each report, display the path of the report in a Listbox
foreach(CatalogItem ci in items)
{
if (ci.Type == ItemTypeEnum.Report)
catalogListBox.Items.Add(ci.Path);
}
}