在 SharePoint 应用程序中使用 SOAP API
随 Reporting Services 的安装提供了一组新的端点,借助这些端点,可以开发与 Microsoft Windows SharePoint Services 3.0 或更高版本以及与 Microsoft Office SharePoint Server 2007 或更高版本紧密集成的报表解决方案。通过安装 Reporting Services 以及 SharePoint 技术的 Reporting Services 外接程序来安装这些端点。有关如何在 SharePoint 集成模式下配置 Reporting Services 的详细信息,请参阅将 Reporting Services 配置为 SharePoint 2010 集成模式。
报表服务器端点
ReportService2005 端点为配置为本机模式的报表服务器提供了管理 API;而 ReportService2006 端点为配置为 SharePoint 集成模式的报表服务器提供了管理 API。在 SQL Server 2008 R2 中,名为 ReportService2010 的新端点可以管理为本机模式或 SharePoint 集成模式配置的报表服务器。
重要提示 |
---|
当报表服务器配置为 SharePoint 集成模式时,ReportService2005 API 将返回 rsOperationNotSupportedSharePointMode 错误。如果报表服务器配置为本机模式,ReportService2006 API 将返回 rsOperationNotSupportedNativeMode 错误。同样,如果在不兼容模式下的报表服务器中使用 ReportService2010 的模式特定 API,API 将返回相应的错误。 |
ReportExecution2005 端点将继续在本地模式和 SharePoint 集成模式下正常工作。以下是在报表服务器上引用 ReportService2010 端点的示例 URL。
http://<Server Name>/ReportServer/ReportService2010.asmx
SharePoint 代理端点
除了报表服务器端点之外,当安装 Reporting Services 外接程序时,还在 SharePoint 服务器上安装一组代理端点。当将报表服务器配置为 SharePoint 集成模式时,代理端点是用于开发报表解决方案的主要 API。当针对代理端点进行开发时,Reporting Services 外接程序在可信帐户身份验证模式下处理 SharePoint 服务器与报表服务器之间的凭据交换。当针对报表服务器端点进行开发时,调用应用程序必须在可信帐户身份验证模式下管理凭据交换。下表列出随 Reporting Services 外接程序安装的端点。
代理端点 |
说明 |
---|---|
为管理配置为 SharePoint 集成模式的报表服务器提供 API。 |
|
为管理配置为本机模式或 SharePoint 集成模式的报表服务器提供 API。 |
|
提供用于执行和导航报表的 API。 |
|
提供 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