2

我们正在编写一个 Web 应用程序,它试图通过调用 Reporting Services SOAP API 来替换所有 ReportManager 功能。

我们开始使用 SSRS 2008 并让我们的 Java 代码正常工作。从那以后,我们不得不降级到 SSRS 2005,现在我们在连接到服务器以获取可用报告列表时遇到问题。

我们进行以下调用:

目录 = _reportingService.listChildren(_reportCredentials.getFolder(), false);

返回异常 - (401)Unauthorized

_reportCredentials 仅保存来自属性文件的信息(例如要使用的文件夹、用户名和密码等)。_reportService 定义为:

私有 ReportingService2005Soap _reportingService;

...

_reportingServiceLocator = new ReportingService2005Locator(); _reportingServiceLocator.setReportingService2005SoapEndpointAddress(soapURL);

尝试 {

_reportingService = _reportingServiceLocator.getReportingService2005Soap();

} catch (Exception e) { throw new ReportServicesException("Could not retrieve SOAP Reporting Service."); }

我还可以作为我们在代码中连接的用户/密码连接到 ReportManager。

我能找到的所有“文档”都只是似乎不适用于 Java 代码的 .NET 代码。有没有人遇到过这样的问题,或者知道使用这些服务的 Java 开发人员的好资源?

4

1 回答 1

1

我们将问题追溯到在 Windows Server 2008 上安装 SSRS 2005。按照此处的步骤操作:http ://www.omegaprojex.com/index.php/2008/10/10/ssrs-2005-on-windows-server- 2008/解决了我们的问题。

于 2008-11-12T19:31:00.717 回答