Jasperserverrestclient

Asked

Viewed 20 times

1

Good evening I am using Jasperserverrestclient to retrieve a report from Jasper server, but when I try to use Reportexecutiondescriptor it is null.

Could someone help me?

RestClientConfiguration configuration = new RestClientConfiguration("https://xxx/jasperserver");
        JasperserverRestClient client = new JasperserverRestClient(configuration);
        Session session = client.authenticate("xxx", "xxx");

        ReportExecutionRequest request = new ReportExecutionRequest();
        request.setReportUnitUri("/rest_v2/reports/sistemas/guia_tiss/spsadt");
        request.setAsync(Boolean.FALSE);
        request.setOutputFormat(ReportOutputFormat.HTML);  

            OperationResult<ReportExecutionDescriptor> operationResult = session.reportingService().newReportExecutionRequest(request);
        ReportExecutionDescriptor reportExecutionDescriptor = operationResult.getEntity();
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.