REST Web服务API:上传/更新报告模板
我希望使用我的代码存储和部署报告模板。
I want to store and deploy report template with my code.
考虑到这一点,运行报告需要两个步骤:
With this one in mind running a report is a two step process:
- 上传或更新现有报告模板 jrxml (它没有指向图像等其他资源的链接)
- 使用我的数据运行它(这是已完成)
- 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
什么是通过 JasperReports服务器REST API 上传/更新报告模板 xml 的原始请求?
What is raw request which uploads/updates report template xml via JasperReports Server REST API?
我试过这种方式
这是我的原始请求
这里是回复
这里我在 / var / lib / tomcat6 / webapps / jasperserver / WEB-INF / logs / jasperserver.log
我是什么做错了?什么 400错误:无法找到资源的二进制内容:/ Reports / product_structures_workshops
是什么意思?
What am I doing wrong? What does 400 error: could not find the binary content for resource: /Reports/product_structures_workshops
mean?
我们最终用jasper库编写专有的本地JAVA应用程序,它做同样的事情
We ended up with writing proprietary local JAVA application with jasper libraries, which does same thing
看起来这在旧的jasper版本中是可行的(> 5.2):
It looks like this is doable in older jasper versions (> 5.2):
他们简化了REST API(寻找API v2)
they simplified significally REST API (look for API v2)
https://community.jaspersoft.com/wiki/getting-started-rest-web -service-api
随着v2 REST API的完成,Jaspersoft宣布原来的
弃用REST API和SOAP
服务的生命周期结束
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