skwong Posted March 10, 2016 Share Posted March 10, 2016 Can someone post a working example of how to define a subreport using web service as the datasource?I am reading this:http://community.jaspersoft.com/project/web-service-data-sourceUnder the section "SubReport and Additional Datasets", I need to cater the scenario for (2):you have a main resultset that you wish to loop, and for each row you want to execute a new query (webservice call)In the subreport configuration (or the dataset) specify not to use any connection at all (leave blank both the connection expression and the datasource expression. The only thing we'll have to do is passing some mandatory parameters for internal webservice datasource to work properly : uriKeyauth TypeKey authParametersKey languageKey verbKeyI am not able to understand what to do here based on the above statements. These parameters are defined in the web service subreport. Am I supposed to pass them back to the main report? If so how am I supposed to do it in Jaspersoft Studio? I am using version 6.2. Link to comment Share on other sites More sharing options...
skwong Posted March 15, 2016 Author Share Posted March 15, 2016 Reading the source code for the web service data adapter, it seems that the documentation is incorrect:uriKeyauth should be uriKeyTypeKey should be authTypeKey Link to comment Share on other sites More sharing options...
Recommended Posts
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