This page contains step by step instructions to install the WebService Datasource in JasperReports® Server and Jaspersoft® Studio.
For additional information on this project please refer to the Project Home Page.
Download WebService Datasource
Extract the zip downloaded from the Project's Release Area.
Update: using version 1.5 on JasperReports® Server v6.4, only the zip Jaspersoft Web Service Data Source v1.5 was needed in the following steps
The unzipped folder will be referenced as [WS_DS_DIR] from now on.
Install Jaspersoft Studio Plugin
- Localize your Jaspersoft Studio Installation directory. We'll reference it as [JSS_DIR] from now on
- Open the folder [WS_DS_DIR]JSS
- Copy the jar files in this folder
- Open the folder [JSS_DIR]plugins
- paste the previously copied jars
(The above didn't work with standalone Jaspersoft Studio 6.4.0 and 6.5.1 on windows 10. What did work was putting the jar files into [JSS_DIR]dropinseclipseplugins as per this stackoverflow self answered question )
Install in JasperReports Server
- Localize your JasperReports Server web application folder. We'll reference it as [JRS_DIR] from now on
- Open the folder [WS_DS_DIR]JRSWEB-INF
- Copy all the folder's content
- Stop your web server running JasperReports Server
- Open the folder [JRS_DIR]WEB-INF
- Backup this folder before executing next step! (this is not mandatory, but recommended)
- paste the previously copied files. Please note that it is not supposed to override any existing file.
- (This step is required only for Community Edition):
- open the file [JRS_DIR]WEB-INFapplicationContext-WebServiceDataSource.xml
- Go to line 49 of the xml file, inside the bean addQueryLanguage change the property beanName from queryLanguagesPro to queryLanguagesCe
- Start your web server running JRS
Import Samples in JasperReports Server repository
Note: I found that the Jaspersoft Studio instructions above did not work for me (version 6.4.3).
As mentioned in this Stack Overflow article (https://stackoverflow.com/questions/42116973/enable-jasper-studio-webservice-plugin), one way to get this to work is to add the three .jar files from /jrs into the jaspersoftstudio/dropins folder instead. In my case, I had also installed the ElasticJasper plugin (/blog/elasticsearch-and-jasper-reports-finally-together) and I had to uninstall that plugin completely before I was able to get the Web Service adapter to show.
So, the alternate instructions are:
- Localize your Jaspersoft Studio Installation directory. We'll reference it as [JSS_DIR] from now on
- Open the folder [WS_DS_DIR]JSS
- Copy the jar files in this folder
- Open the folder [JSS_DIR]dropins
- paste the previously copied jars
- restart Jaspersoft Studio
Recommended Comments
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