我的jasperserver 5.0.0目前有一些问题。
当我尝试使用rest_v2应用程序接口获取报告时,出现错误。
使用以下url:http://myjasper.net:8081/jasperserver/rest_v2/reports/reports/AP/Offre.PDF%3FtarificationId=3601844
->错误:
<errorDescriptor>
<errorCode>webservices.error.errorExportingReportUnit</errorCode>
<parameters>
<parameter>
Export format pdf?tarificationid=3601844 not supported or misconfigured
</parameter>
</parameters>
</errorDescriptor>使用以下url:http://myjasper.net:8081/jasperserver/rest_v2/reports/reports/AP/Offre.PDF?tarificationId=3601844
->它成功了!!
为什么?
发布于 2013-06-11 21:38:03
以下是指向JasperReports服务器网站服务指南的链接:
http://community.jaspersoft.com/documentation/jasperreports-server-web-service-guide
第21页:
参数以常规语法在 URL 中传递:http://:/jasperserver[-pro]/rest//path/to/object?=&=&...
您实际上并不是在传递一个问号,而是在告诉web服务准备接受您的参数。有关GET请求的详细信息,请参阅http://www.w3schools.com/tags/ref_httpmethods.asp。
发布于 2014-10-27 13:56:34
看起来所有的网址都是用"encodeURIComponent“或类似的函数编码的,哪个编码是"&","?”和其他URL符号。这些函数必须用于对URL参数进行编码,而不是用于所有url。
https://stackoverflow.com/questions/17039175
复制相似问题