Reporting Services WS-from Java-未经授权获取(401)

Reporting Services WS-from Java-未经授权获取(401),java,web-services,reporting-services,unauthorized,Java,Web Services,Reporting Services,Unauthorized,我们正在编写一个web应用程序,它试图使用对ReportingServicesSOAPAPI的调用来替换所有ReportManager功能 我们开始使用SSR2008,并使Java代码正常工作。此后,我们不得不降级到SSRS 2005,现在我们在连接到服务器以获取可用报告列表时遇到问题 我们作出以下呼吁: catalog=\u reportingService.listChildren(\u reportCredentials.getFolder(),false) 返回一个异常-(401)Una

我们正在编写一个web应用程序,它试图使用对ReportingServicesSOAPAPI的调用来替换所有ReportManager功能

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

我们作出以下呼吁:

catalog=\u reportingService.listChildren(\u reportCredentials.getFolder(),false)

返回一个异常-(401)Unauthorized

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

private reportingService 2005 SOAP_reportingService

_reportingServiceLocator=新的ReportingService2005Locator(); _reportingServiceLocator.setReportingService2005SoapEndpointAddress(soapURL)

试一试{

_reportingService=_reportingServiceLocator.getReportingService2005Soap()

}捕获(例外e){ 抛出新的ReportServicesException(“无法检索SOAP报告服务”); }

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


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

我们将问题追溯到在Windows Server 2008上安装了SSRS 2005。按照这里的步骤:修复了我们的问题