jasperserver

Run report from JasperServer using PHP SOAP client

余生长醉 提交于 2019-12-05 04:06:41
问题 I want to run a report from JasperServer using a PHP SOAP client. I found this example online, but I want to attach an XML data source, used for the report data, and I am unsure how it should be correctly attached. How can I attach my XML data source to the SOAP request, that is acceptable to Jasper Server? public function requestReport($report, $format, $params) { $params_xml = ""; foreach ($params as $name => $value) { $params_xml .= "<parameter name=\"$name\"><![CDATA[$value]]></parameter>

Running jasperserver behind nginx: Potential CSRF attack

好久不见. 提交于 2019-12-05 01:27:41
We are using nginx for https traffic offloading, proxying to a locally installed jasperserver (5.2) running on port 8080. internet ---(https/443)---> nginx ---(http/8080)---> tomcat/jasperserver When accessing the jasperserver directly on its port everything is fine. When accessing the service through nginx some functionalities are broken (e.g. editing a user in the jasperserver UI) and the jasperserver log has entries like this: CSRFGuard: potential cross-site request forgery (CSRF) attack thwarted (user:%user%, ip:%remote_ip%, uri:%request_uri%, error:%exception_message%) After some

Retrieve resource from jasperserver repository using server java api

帅比萌擦擦* 提交于 2019-12-04 12:26:48
I'm trying to retrieve resource from Jasperserver repository using its java API, according to jasper report server ultimate guide , I should get an instance of the ExecutionContext interface: ExecutionContext context = JasperServerUtil.getExecutionContext(); then, get an instance of the RepositoryService interface: RepositoryService repositoryService = ...; //how?? Now I can get the file using the following code: FileResourceData fileResourceData = repositoryService.getContentResourceData(context, "/examples/report.pdf"); my question is how can I get the RepositoryService instance?

Passing in content when generating JasperServer report using the REST API

落爺英雄遲暮 提交于 2019-12-04 11:23:03
问题 I'm working on a project that aims to replace our current PDF generator with JasperReports Server. The plan is to use the REST/HTTP API to reach a high level of abstraction between the systems. Optimally, we do not want to let JasperReports Server pull the data from the database, since this would bypass the existing logging and authorization in the calling application's architecture. Instead, we'd like to start with extracting the content in the calling application, and then pass that content

Create a calendar to pick dates (and time) in Jasper server

杀马特。学长 韩版系。学妹 提交于 2019-12-04 06:35:55
问题 enter image description here @jtsnr --This snapshot from jasper server.I clicked outside the text box Dateto and a calendar is displayed. But there is no calendar icon outside the boxes as seen in previous example. Also, the text box takes any text typed into it but throws error that type a valid date.If date is typed it accepts it.I want it should accept only dates picked from calendar or typed dates only. Is that possible? 回答1: When you create the input control in JasperServer via the

Why Jasper Reports shows empty report in server, but generates correctly in jasper studio

不羁的心 提交于 2019-12-04 05:05:42
问题 I am using Jasper Studio 6.6.0 and Jasper server 7.1. I have created a simple report with an image from a specified URL. It generates correctly in Jasper Studio, but in the server it shows empty. Please refer images attached: Server Screenshot Jasper Screenshot 回答1: If you want to show something in the JasperReport without data source or with empty data source then you have two options: 1) Set the When No Data Type property on All Section No Detail option in the Jasper Studio: In JRXML it can

How do you know if Tomcat Server is installed on your PC

牧云@^-^@ 提交于 2019-12-04 02:22:38
I am using Windows 7 OS. I just installed jaspersoft server which installed Apache Tomcat and mysql as a bundle along with it. I go to http://localhost:8080 and theres a message that says webpage is not available. I am a beginner, and I would like to know if Tomcat is first installed on my computer. Can you tell me how I can do that ? ( I would also like to know if it has to be started and on what port it was installed.) UPDATE Heres something I did . i am really confused now . I found the location of the tomcat server. I found the server.xml file. The port in the server.xml file was listed as

Run report from JasperServer using PHP SOAP client

有些话、适合烂在心里 提交于 2019-12-03 20:33:44
I want to run a report from JasperServer using a PHP SOAP client. I found this example online, but I want to attach an XML data source, used for the report data, and I am unsure how it should be correctly attached. How can I attach my XML data source to the SOAP request, that is acceptable to Jasper Server? public function requestReport($report, $format, $params) { $params_xml = ""; foreach ($params as $name => $value) { $params_xml .= "<parameter name=\"$name\"><![CDATA[$value]]></parameter>\n"; } $request = " <request operationName=\"runReport\" locale=\"en\"> <argument name=\"RUN_OUTPUT

REST Web Service API: upload/update report template

∥☆過路亽.° 提交于 2019-12-03 20:17:16
I want to store and deploy report template with my code. With this one in mind running a report is a two step process: 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 What is raw request which uploads/updates report template xml via JasperReports Server REST API ? I tried this way here is my raw request here is response here what I see in /var/lib/tomcat6/webapps/jasperserver/WEB-INF/logs/jasperserver.log What

tomcat not starting

落花浮王杯 提交于 2019-12-03 18:02:02
问题 suddenly for some reason tomcat server is not runnin/starting/stopping. below is the result I get when i run the startup command, C:\Program Files\jasperserver-3.5.0\apache-tomcat\bin>startup Using CATALINA_BASE: C:\Program Files\jasperserver-3.5.0\apache-tomcat Using CATALINA_HOME: C:\Program Files\jasperserver-3.5.0\apache-tomcat Using CATALINA_TMPDIR: C:\Program Files\jasperserver-3.5.0\apache-tomcat\temp Using JRE_HOME: C:\PROGRA~1\JASPER~1.0\java\jre The tomcat window pops up for a split