Search code examples
restjasper-reportsjasperserver

REST Web Service API: upload/update report template


I want to store and deploy report template with my code.

With this one in mind running a report is a two step process:

  • upload or update existing report template jrxml (it does not have links to other resources like images)
  • run it with my data (this one is done)

The official documentation doesn't contain a minimal example for updating report template

What is raw request which uploads/updates report template xml via JasperReports Server REST API?

I tried this way

here is my raw request

here is response

here what I see in /var/lib/tomcat6/webapps/jasperserver/WEB-INF/logs/jasperserver.log

What am I doing wrong? What does 400 error: could not find the binary content for resource: /Reports/product_structures_workshops mean?


Solution

  • We ended up with writing proprietary local JAVA application with jasper libraries, which does same thing

    It looks like this is doable in older jasper versions (> 5.2):

    they simplified significally REST API (look for API v2)

    https://community.jaspersoft.com/wiki/getting-started-rest-web-service-api

    With the completion of the v2 REST API, Jaspersoft announces the deprecation of the original REST API and the end-of-life of the SOAP services