2

I want upload/update report template JRXML file on JasperReports Server.

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 to run JasperServer java tests(using maven): http://code.jaspersoft.com/svn/repos/jasperserver/ But I couldn't. There were many errors.

Then I found this sample test for updating image in Jasper Server resources: http://community.jaspersoft.com/wiki/getting-started-rest-web-service-api It works!

I wrote my request for update JRXML file

here is my raw request https://gist.github.com/anonymous/b2dd458868243b37c795

here is response https://gist.github.com/anonymous/916f09199103665b97c0

What am I doing wrong in my request?

4

1 回答 1

1

我找到了解决办法。request中的资源描述符必须是reportunit,而不是jrxml文件的资源描述符!!!

于 2013-04-05T13:22:37.933 回答