-
Json data source from external REST webservice
Issue Description It is possible to use an external REST service returning JSON data as a direct report datasource. Resolution Via the TIBCO JasperReports® API, you can make use of HTTP sources, which can return JSON. See the following json data source sample doc: http://jasperreports.sourceforge.net/sample.reference/jsondatasource/index.html#jsondatasource As you'll see in the above sample, you can specify jrxml properties which define where the source should come from. As the notes mention, you can use parameters or properties to specify the source. Following is an example of a remote http source: "dude" The attached metallica.zip contains a JasperReports® Server JS-export containing a report and input controls which query the JSON-based apple Itunes search. Also The unsupported community project, "Web Service Data source", available as an extension here https://community.jaspersoft.com/project/web-service-data-source, provides more flexible REST/JSON Web Service interactions than the standard JSON data source described above which only offers GET. For flexibility and rich functionality that is supported, see the HTTP Data Adapter shipped described here http://jasperreports.sourceforge.net/sample.reference/httpdataadapter/index.html#httpdataadapter and here https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v750/connecting-web-service-using-json-data-adapter Ref. Case 00063016 Table of contents
User Feedback
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now