Jump to content
We've recently updated our Privacy Statement, available here ×

DevLinux

Members
  • Posts

    5
  • Joined

  • Last visited

DevLinux's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Does anyone have a full working example of using POST to deploy a report using the REST API? For a report, there are several things that need to be specified. The .jrxml file The report deployment info (which input controls to use, data source etc) and before the report is deployed, the data source has to be deployed, and all input controls that would be used. I can not determine how to do this from the documentation, it simply does not detail what is needed here. I can find no sample code, so anything would be helpful.
  2. I looked at this (jrs-rest-java-client) and it is so convoluted and outdated, it does not work. The StackOverflow post was not the best example. It is quite surprising that Tibco Jaspersoft has no developer advocates that maintain a git repo of examples to help folks out. With every other API I have ever used, the company/org maintains a git repo of basic examples to get started. The documentation for the REST API has not changed from 7.5.1...7.9.0 and provides very little help.
  3. We have a new Jasper Report initiative within my company and have setup two JasperReports servers setup in a cloud environment (installed on Linux). I have been tasked with managing the git repo, but have not typically worked as a release engineer. What is being done out there, in your company, or what would your suggestions be for release management? Our current work flow is: create a branch off master for work on each individual report ( branch/report-name )work on a single report (.jrxml)merge the .jrxml back into master when the report is ready to be deployed to productiononce a week deploy all .jrxml files to the production serverdevelopers are allowed to deploy their jrxml files to the test server at any time (but I believe this needs to change) I see a lot of problems with this work flow Questions: what would be your recommendations, a change of flow for use with a test server and a production server?how do we version the .jrxml files so that it reflects a deployment to production?What is your method of deployment (or best choice), for deploying reports (of the many options)
  4. I have example code that will do a POST to authenticate to my server. That works and is as far as I can get, I have not figured out how to make subsequent calls using the connection that is returned. After the POST, I want to do a GET. As I understand it, I must save or use the returned cooking for subsequent calls if I want to do a GET. Does anyone have a simple single file .java example of doing a POST to authenticate to the server and then doing a GET with the connection that is returned? I cannot find an example of this anywhere in any documentation or site, but it seems like a very common thing that would be done. Any help would be greatly appreciated. If there are dependencies, inncluding a pom.xml would be extremely helpful. --- //this works byte[] creds = ("superuser:superuser").getBytes("utf-8");String jasperAuth = "Basic " + Base64.getEncoder().encodeToString(JasperCred);URL url = new URL("http://localhost:8080/jasperserver-pro");HttpURLConnection con = (HttpURLConnection) url.openConnection();con.setRequestProperty("Authorization", jasperAuth);con.setRequestMethod("POST"); now I have a connection 'con', and want to do another GET and possibly more POST's How does one auth with POST, and then do a subsequent GET? --- I am assuming the POST would save a cookie that I can use in the GET so I would not have to auth with the GET? I do not want to auth via GET because the user login/password would/could be saved in server log files and is an insecure approach.
  5. Environment: JavaMavenJasperReports Server: 7.xI would like to deploy a report to JasperReports Server using the REST API. I do not know if this is possible, maybe it is only possible with the API (including .jars as dependencies, and using that). Does anyone have a bare bones minimal example of deploying a .jrxml to the server by any means (that I can pull from a git repo that includes a pom.xml)? 1. authenticate 2. read a .jrxml or provide the path to a .jrxml 3. deploy to the server 1..3 would get me a long ways, I'm going through the documentation meticously, and getting no where. I would like to not use any 3rd party SDK, I need to use just Java/JDK, built in libraries, and other imports needed that can be pulled in through pom.xml It is not obvious in the REST API how to do this, and may not even be possible. If that is not possible, I could include a jasperreports-server-api.jar as a dependency and code that, but need a barebones example.
×
×
  • Create New...