HTTP请求POST.通过JaspeReports服务器上传JRXML文件 [英] HTTP Request POST.Upload JRXML file via JaspeReports Server
问题描述
我想在JasperReports Server上上传/更新报告模板JRXML文件.
I want upload/update report template JRXML file on JasperReports Server.
官方文档没有包含更新报告模板的最小示例 通过JasperReports Server REST API上传/更新报告模板xml的原始请求是什么?
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?
我尝试运行JasperServer Java测试(使用Maven): http://code.jaspersoft .com/svn/repos/jasperserver/ 但是我做不到.有很多错误.
I tried to run JasperServer java tests(using maven): http://code.jaspersoft.com/svn/repos/jasperserver/ But I couldn't. There were many errors.
然后,我在Jasper Server资源中找到了用于更新映像的此示例测试: http://community.jaspersoft.com/wiki/getting-started -rest-web-service-api 可行!
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!
我写了更新JRXML文件的请求
I wrote my request for update JRXML file
这是我的原始要求 https://gist.github.com/anonymous/b2dd458868243b37c795
这是回应 https://gist.github.com/anonymous/916f09199103665b97c0
我的请求做错了什么?
推荐答案
我找到了一个解决方案.请求中的资源描述符必须是reportunit,而不是jrxml文件的资源描述符!
I found a solution.The resource descriptor in request must be reportunit, but not а resource descriptor of jrxml file!!!
这篇关于HTTP请求POST.通过JaspeReports服务器上传JRXML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!