报表服务器 Web 服务端点

报表服务器 Web 服务提供了几个端点,用于管理报表服务器以及执行和导航报表。

管理端点

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

重要说明重要提示

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

注意注意

在 SQL Server 2008 R2 中不推荐使用 ReportService2005ReportService2006 端点。 ReportService2010 端点包含两个端点的功能和其他管理功能。

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

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

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

执行端点

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

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

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

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

http://<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 中不推荐使用此端点。

ReportService2010

为管理配置为本机模式或 SharePoint 集成模式的报表服务器提供 API。

ReportExecution2005

提供用于运行和导航报表的 API。

ReportServiceAuthentication

提供 API,以便在将 SharePoint Web 应用程序配置为窗体身份验证时,针对报表服务器对用户进行身份验证。

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

http://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportService2010.asmx

http://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportExecution2005.asmx

http://<Server Name>/<Site Name>/_vti_bin/ReportServer/ReportServiceAuthentication.asmx

请参阅

其他资源

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