title: How to make a subreport that uses web service as the data source work in Jasper Reports
body: <p>Can someone post a working example of how to define a subreport using web service as the datasource?</p>
  
  <p>I am reading this:</p>
  
  <p><a href="http://community.jaspersoft.com/project/web-service-data-source" rel="nofollow">http://community.jaspersoft.com/project/web-service-data-source</a></p>
  
  <p>Under the section "SubReport and Additional Datasets", I need to cater the scenario for (2):</p>
  
  <blockquote>
    <p>you have a main resultset that you wish to loop, and for each row you want to execute a new query (webservice call)</p>
    
    <p>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:</p>
    
    <ul>
    <li>uriKeyauth</li>
    <li>TypeKey</li>
    <li>authParametersKey</li>
    <li>languageKey</li>
    <li>verbKey</li>
    </ul>
  </blockquote>
  
  <p>I 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. Even after I define these parameters in the main report, when I run preview, I get the error:</p>
  
  <blockquote>
    <p>Caused by: net.sf.jasperreports.engine.JRException: Verb should be POST or GET . is not a valid verb</p>
  </blockquote>