jasmin.kaldzija Posted July 31, 2014 Share Posted July 31, 2014 Hi everyone, I have got one question? Is there any way to upload file(report) to jasperserver from java? Read/load file from drive and upload it on jasperserver(localhost). Thank you, Jasmin Link to comment Share on other sites More sharing options...
H Mendoza Posted July 31, 2014 Share Posted July 31, 2014 Take a look at the JasperReports Server Web Services Guide (there is one for the both the community project and the commercial offering), and you will see what your options are in terms of loading resources. You'll likely use REST web services, which is what is supported and lets you interact with the server programmatically. Link to comment Share on other sites More sharing options...
hozawa Posted July 31, 2014 Share Posted July 31, 2014 By "Upload a report", I'm assuming that you want to upload a jrxml file to a JasperReports Server repository. Following page in the Web Service guide explains the api to do this.http://community.jaspersoft.com/documentation/jasperreports-server-web-services-guide/v56/creating-resource Link to comment Share on other sites More sharing options...
jasmin.kaldzija Posted August 1, 2014 Author Share Posted August 1, 2014 Thank you,this works fine: http://pastebin.com/LLF0r0qgIs this good practice?(how can I paste code here without getting mess) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now