Sql Server Reporting Service を Java EE アプリケーションと統合しようとしています。レポート サーバーで 2 つのレポートを確認できます。RS Web サービスを使用してサーバーにアクセスしようとしています。私が取ったステップは
- Eclipse で作成された動的プロジェクト
- New - Web Service client に移動し、Web サービスの定義を ://serverName:port/ReportServer/reportservice2010.asmx?wsdl として入力しました。
- 私のプロジェクトでは、以下のパッケージが表示されます com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer
私のコード:
com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer.ReportingService2010SoapProxy service = new com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer.ReportingService2010SoapProxy();
String endPo="://serverName:port/ReportServer/reportservice2010.asmx?wsdl";
service.setEndpoint(endPo);
service.logonUser("serverName\\username", "password",null );
エラーは次のとおりです。
AxisFault faultCode: {xml.apache.org/axis}HTTP faultSubcode: faultString: (401)Unauthorized
この後、私は何をする必要があるのか わかりません。私を助けてください。また、プロキシを使用してこの Web サービスを使用しようとしましたが、エラーが発生します。Java で SSRS 2010 Web サービスを使用するために正確に何をすべきかを教えてください。
よろしく、 ニール