报表服务器 Web 服务终结点

报表服务器 Web 服务提供了多个终结点,用于管理报表服务器和执行和导航报表。

管理终结点

有三个端点可用于管理报表服务器上的对象,即:ReportService2005ReportService2006ReportService2010ReportService2005 端点用于管理配置为本机模式的报表服务器上的对象。 ReportService2006 端点用于管理配置为 SharePoint 集成模式的报表服务器上的对象。 ReportService2010 终结点合并了 ReportService2005ReportService2006 的功能,可以管理为本机或 SharePoint 集成模式配置的报表服务器上的对象。

重要

如果报表服务器配置为 SharePoint 集成模式,ReportService2005 API 将返回 rsOperationNotSupportedSharePointMode 错误。 如果报表服务器配置为本机模式,ReportService2006 API 将返回 rsOperationNotSupportedNativeMode 错误。 同样,在非预期模式中使用 ReportService2010 中的模式特定 API 时,API 将返回相应的错误。

注意

SQL Server 2008 R2 (10.50.x) 中已弃用 ReportService2005ReportService2006 终结点。 ReportService2010 端点包含两个端点的功能和其他管理功能。

如果报表服务器配置为本机模式或 SharePoint 集成模式,则可以使用以下 URL 之一访问管理终结点的 WSDL:

https://<Server Name>/ReportServer/ReportService2010.asmx?wsdl  

有关详细信息,请参阅访问 SOAP API

执行端点

通过 ReportExecution2005 端点,开发人员可以轻松地从处于本机模式和 SharePoint 集成模式下的报表服务器自定义报表处理和呈现。 此端点包含报表服务器 Web 服务的先前版本中提供的类和方法。 此外,还向报表服务器 Web 服务添加了许多通过执行端点公开的新类和新方法。

可以使用以下 URL 访问管理端点的 WSDL:

https://<Server Name>/ReportServer/ReportExecution2005.asmx?wsdl  

如果将报表服务器配置为 SharePoint 集成模式,则可以使用以下 URL 访问 WSDL:

https://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportExecution2005.asmx?wsdl  

有关详细信息,请参阅访问 SOAP API

SharePoint 代理终结点

当报表服务器配置为 SharePoint 集成模式且已安装 Reporting Services 加载项时,将在 SharePoint 服务器上安装一组代理终结点。 当将报表服务器配置为 SharePoint 集成模式时,代理端点是用于开发报表解决方案的主要 API。 针对代理终结点进行开发时,Reporting Services 外接程序管理 SharePoint 服务器和报表服务器之间的凭据交换(在受信任的帐户身份验证模式下)。 针对报表服务器终结点进行开发时,调用应用程序必须在受信任的帐户身份验证模式下管理凭据交换。 下表列出随 Reporting Services 加载项安装的终结点。

代理端点 说明
ReportService2006 为管理配置为 SharePoint 集成模式的报表服务器提供 API。

注意:SQL Server 2008 R2 (10.50.x) 中已弃用此终结点。
ReportService2010 为管理配置为本机模式或 SharePoint 集成模式的报表服务器提供 API。
ReportExecution2005 提供用于运行和导航报表的 API。
ReportServiceAuthentication 提供 API,以便在将 SharePoint Web 应用程序配置为窗体身份验证时,针对报表服务器对用户进行身份验证。

以下是引用 SharePoint 站点上代理端点的示例 URL。

https://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportService2010.asmx  
https://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportExecution2005.asmx  
https://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportServiceAuthentication.asmx  

使用 Web 服务和 .NET Framework 生成应用程序