jasper server rest_v2 request with parameters

Hi,
I have a problem with running a report asynchronously with parameters. Without parameters everything works fine. My report execution request structure:
 
<reportExecutionRequest>
     <async>true</async>
     <freshData>false</freshData>
     <ignorePagination>false</ignorePagination>
     <interactive>false</interactive>
     <outputFormat>html</outputFormat>
     <pages>1</pages>
     <parameters>
          <reportParameter name="customerName">
               <value>test</value>
          </reportParameter>
     </parameters>
     <reportUnitUri>/reports/Customers</reportUnitUri>
     <saveDataSnapshot>false</saveDataSnapshot>
</reportExecutionRequest>
 
Client has a 400 bad request error. Jasperserver logs says nothing. 
 
Have any ideas?
 
Thank you.
rozgust's picture
Joined: May 16 2014 - 1:43pm
Last seen: 7 years 6 months ago

1 Answer:

The xml syntax looks right. Does the parameter match the report input?

I've also found some of the api do not properly work on some version. Which JasperReport Server version are you using?

hozawa's picture
190407
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago

Hello, I'm using jasperreports-server-cp-5.6.0.
Yes, all parameters match to names of input controls...

rozgust - 9 years 1 month ago
Feedback