Aracılığıyla paylaş


soap API kullanarak bir Web uygulaması

Reporting Services soap API rapor sunucusu tüm işlevselliğini erişebilirsiniz.Bir Web hizmet olduğu için soap API özel iş uygulamalarınız için Kurumsal raporlama özellikleri sağlamak için kolayca erişilebilir.Size rapor sunucusu Web hizmet, bir Web uygulamasından gelen soap API erişme aynı şekilde erişim bir Microsoft Windows uygulama.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 Rapor yönetimi işlevi bir Web uygulamasından olarak bir Windows uygulaması kolay erişilir.Bir Web uygulamasından ekleyin ve öğeleri rapor sunucu veritabanından kaldırmak küme güvenlik öğesi, rapor sunucusu veritabanında öğeleri değiştirmek, zamanlama ve teslim ve daha fazlasını yönetin.

Kimliğe bürünme özelliğini etkinleştirme

Web'den kimliğe bürünme özelliğini etkinleştirmek için Web uygulamanızın yapılandırma ilk adımı olan hizmet istemci.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.Ya da, durum, ASP.NET uygulama taklit kimliğe bürünme özelliği etkinse, hangi belirteci aldı.İstemci kimliğe bürünme özelliğini etkinleştirmek için Web değiştirerek kullanabilirsiniz.yapılandırma dosyası istemci uygulamasının aşağıdaki gibi:

<!-- Web.config file. -->
<identity impersonate="true"/>

Not

Kimliğe bürünme varsayılan olarak devre dışıdır.

For more information about ASP.NET impersonation, see the Microsoft .NET Framework SDK documentation.

soap API kullanarak rapor sunucusu yönetme

Web uygulamanızı, rapor sunucusu ve içeriği yönetmek için de kullanabilirsiniz.Rapor Yöneticisi ile birlikte verilen, Reporting Services, bir Web uygulamasının tamamen yerleşik kullanarak bir örnek ASP.NET ve Reporting Services soap API.Rapor Yönetimi işlevleri, Rapor Yöneticisi özel Web uygulamalarınıza ekleyebilirsiniz.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.Aşağıdaki kod rapor sunucusu veritabanı bağlanır ve rapor sunucusu veritabanında öğeleri listesini döndürür.Var olan raporları görüntüleyen bir liste kutusu denetimi için daha sonra eklenen yol her rapor.

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);
   }
}