Jump to content
We've recently updated our Privacy Statement, available here ×

muri

Members
  • Posts

    2
  • Joined

  • Last visited

muri's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. copy <jasper-install-dir>\buildomatic\conf_source\db\oracle\jdbc\ojdbc5-11.2.0.jar to <jasper-install-dir>\apache-tomcat\lib jasperserver stop jasperserver start Adding datasources to your report with oracle-jdbc-url and driver name in the JasperServer-Webconsole. like this: Driver: oracle.jdbc.driver.OracleDriver JDBCURL: jdbc:oracle:thin:@<host>:<port>:<sid> done....
  2. Notice: Use "REST Client for Firefox" to try these Example STEP 1: Getting the ressource descriptor Sending a request with the url to the report(repository url, you can find it in the jasper-web-console->repositories) and HTTP-GET-Methode GET /jasperserver/rest/resource/reports/Bedarf/beda HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection: keep-alive Authorization: Basic amFzcGVyYWRtaW46amFzcGVyYWRtaW4= The response is a ressource descriptor (an XML-File), which is used to generate the report (step 2). STEP 2: Generating a report PUT /jasperserver/rest/report/reports/Bedarf/beda HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection: keep-alive Authorization: Basic amFzcGVyYWRtaW46amFzcGVyYWRtaW4= Content-Length: 2621 Content-Type: text/plain; charset=UTF-8 The server responds a XML-File with an ID to the report and parameters to specify the output(e.g. fileformat). 3) Getting the outputfile <report> <uuid>720cca66-1211-46e2-b747-40def7d23472</uuid> <originalUri>/reports/Bedarf/beda</originalUri> <totalPages>7</totalPages> <startPage>1</startPage> <endPage>7</endPage> <file type="application/pdf">report</file> </report> http://localhost:8080/jasperserver/rest/report/[uuiD]?file=[file] Example: in Firefox Browser : http://localhost:8080/jasperserver/rest/report/720cca66-1211-46e2-b747-40def7d23472?file=report GET /jasperserver/rest/report/2c6cefc8-c763-4455-a52f-92c00992f01f?file=report HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection: keep-alive Cookie: treefoldersTree=1%7Copen%3B; userLocale=de_DE; userTimezone=Europe/Berlin; JSESSIONID=EC0AEFB5CD18B4D5EB94BDCD1F0A4E44; lastFolderUri=/ Authorization: Basic YWRtaW46YWRtaW4= The server responds the PDF-File. Post Edited by muri at 11/24/2011 11:57
×
×
  • Create New...