How to create jasper report in jasperserver using rest api?

0

Hi....

We are trying to create a report in jasper server using rest api.

But the report is exporting as simple file insted of .jrxml.

How can we achive this problem?

rajesh.majoju's picture
Joined: Feb 8 2014 - 1:57am
Last seen: 3 years 11 months ago

3 Answers:

0

I'm not sure if I understant your question correctly, but I assume you are trying to create a report object in the JasperServer Repository our of an existing (or created on the fly) .jrxml file via Web Services.

In that case you need to use the Repository web services to create objects in the repository, in your case it will be a Report Unit, check the Reource Services in the Jaspersoft Web Services Guide 

 

marianol's picture
4778
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 1 month ago
0

Thanks for quick repsonse.

We are trying to create the report unit as well as report(.jrxml) but we failed to create report unit. Only .jrxml file is uploaded to server. That is why .jrxml file treated as a simple file by jasperserver.

We are using eclipse to develop our web application and java is used for handling the reporting.

Can please give proper explaination for my problem.

Thanks.

rajesh.majoju's picture
Joined: Feb 8 2014 - 1:57am
Last seen: 3 years 11 months ago
0

can you please provide a sample how to use RESTV2 resource services. how to call xml file in a java program and where to input the path of jrxml,input control and datasource present in resources folder of my project..thanks a lot in advance

rajesh.majoju's picture
Joined: Feb 8 2014 - 1:57am
Last seen: 3 years 11 months ago

Don't know if you still need this or not but just in case others might... here is the link to a page with reasonable discussion on Restv2 and Jasper PHP API.

http://community.jaspersoft.com/wiki/php-client-sample-code

bob_8 - 5 years 3 months ago
Feedback
randomness