使用 SOAP 从 JasperServer 获取报告
有人可以给我提供一个使用 SOAP API 从 jasperserver 获取报告的工作示例吗? 实际上我知道如何将其运行到文件中......但我需要直接获取报告数据。
提前致谢!
Can someone provide me a working example which gets reports from jasperserver using it's SOAP API.
Actually I know how to run it to a file.... but I need to get report data directly.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经尝试了很多方法来完成上述事情,我想到的是从 JasperServer 以 JasperPrint 格式获取报告,然后以您需要的任何方式导出它。解决该问题的另一种方法是通过 HTTP API 获取报告。
I've tried a lot of ways of doing the above thing, and what I've came up with is to get report from JasperServer in JasperPrint format and then export it in whatever you need. Another way of solving that problem is to get report via HTTP API.
您可以查看 http://www.codeproject.com/KB/ajax/JavaScriptSOAPClient.aspx
但我也遇到了同样的问题,必须直接访问 jasperserver。如果您在 PHP 服务器上执行此操作,他们有相当多的 PHP 演示代码可以为您执行 SOAP 调用。我使用了它,发现它比使用 JavaScript 更容易实现。不过,上面的链接应该可以帮助您进行 SOAP 调用。
我发现 Jaspers SOAP 文档缺乏,因此拥有执行工作示例的 PHP 源代码非常有帮助。
You can check out http://www.codeproject.com/KB/ajax/JavaScriptSOAPClient.aspx
But I had the same issue of having to go to jasperserver direct. If you're doing this on a PHP server they have quite a bit of PHP demo code that does the SOAP call for you. I used that and found it far easier to implement than doing it with JavaScript. The above link though should help you with making the SOAP call.
I found Jaspers SOAP documentation lacking so having the PHP source code that did a working example was quite helpful.