Using Web Services

Use Aspose exporters with the Web Services of Jasper Report Server

Here is a description how to do this with JasperServer Web Services sample application (which is included in JasperServer distribution package):

  1. Install Aspose.Words for JasperReports as described above in this document
  2. Install jasperserver-ws-sample application from \samples\java-webapp-sample
  3. Replace 2 files inside root folder of this app by those from demo\webservices folder in Aspose.Words for JasperReports distribution package. Note: new code fragments are included between lines containing Aspose.Words for JasperReports START and Aspose.Words for JasperReports END
  4. Modify jasperserver/WEB-INF/applicationContext-web-services.xml as described here.
  5. Stop/Start Jasper Server
  6. Run localhost:8080/jasperserver-ws-sample
  7. Browse to Reports, then Samples and then select some report, say “Employees”
  8. In “Export format” drop-down box select “XXX via Aspose.Words”, where XXX is desired output format
  9. Press “Run the Report” button
  10. Report download should start Certainly it is possible to use any other standard (or your own) client to produce reports from JasperServer Web Services.