title: calling jasper report from Rest web service
body: <p>I have a problem with calling jasper report from web service.</p>
  
  <p>I used this URL <a href="http://host:port/jasperserver[-pro]/rest_v2/reportExecutions" rel="nofollow">http://host:port/jasperserver[-pro]/rest_v2/reportExecutions</a> to get request id ,and  the output was something like following XML.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;reportExecution&gt;&lt;exports&gt;&lt;export&gt;&lt;id&gt;ee83c20b-6c3b-4299-88cb-57cc771aa7e2&lt;/id&gt;&lt;outputResource&gt;&lt;contentType&gt;application/xls&lt;/contentType&gt;&lt;fileName&gt;myreport.xls&lt;/fileName&gt;&lt;outputFinal&gt;true&lt;/outputFinal&gt;&lt;/outputResource&gt;&lt;status&gt;ready&lt;/status&gt;&lt;/export&gt;&lt;/exports&gt;&lt;reportURI&gt;/reports/my_reports/myreport&lt;/reportURI&gt;&lt;requestId&gt;78183e2a-3740-4706-a058-a4d94508a9ad&lt;/requestId&gt;&lt;status&gt;ready&lt;/status&gt;&lt;totalPages&gt;1&lt;/totalPages&gt;&lt;/reportExecution&gt; 
  </code></pre>
  
  <p>Now I'm trying to run jasper report by the following url</p>
  
  <p><a href="http://localhost:8080/jasperserver/rest_" rel="nofollow">http://localhost:8080/jasperserver/rest_</a>
  v2/reportExecutions/78183e2a-3740-4706-a058-a4d94508a9ad/exports/ee83c20b-6c3b-4299-88cb-57cc771aa7e2/outputResource</p>
  
  <p>But this URL does not work properly. The question is How can I reform the URL to call the report?</p>
  
  <p>Actually I need to call jasper report from oracle apex application but I don't want to use opal-consulting method to integrate oracle apex and jasper report I simply want to call a web service in PL SQL</p>
  
  <p>I tried this URL --<a href="http://host:port/jasperserver/rest_v2/reports/[path" rel="nofollow">http://host:port/jasperserver/rest_v2/reports/[path</a> to the report].[format]-- it works for me but it prompts user to log into jasper server. On the other hand this URL returns the report file, I need to have a URL to Download the output.</p>
  
  <p>Could you please tell me how to call jasper report to generate output download link.</p>
  
  <p>corresponding to jasper server Documents, it is possible to make a request and run a report in URL....you can find the documents here   [<a href="http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v610/running-report-asynchronously-0][1]" rel="nofollow">http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v610/running-report-asynchronously-0][1]</a>  </p>
  
  <p>Thanks for your help in advance</p>