HTTP Request POST.Upload JRXML file via JaspeReports Server

杀马特。学长 韩版系。学妹 提交于 2019-12-07 18:50:35

问题


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?


回答1:


I found a solution.The resource descriptor in request must be reportunit, but not а resource descriptor of jrxml file!!!



来源:https://stackoverflow.com/questions/15832107/http-request-post-upload-jrxml-file-via-jaspereports-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!