How to set the locale of the running report via rest_v2 webservice?

I am running report on the JR server (v5.0.0 CE) calling v2 restful service like as following:

http://localhost:8080/jasperserver/rest_v2/reports/reports/MyReport.pdf?...

The report MyReport.jrxml is designed in iReport and it can run and show the report both in EN and TR locales
after changing iReport's locale through "Compilation and execution" settings appropriately. After uploading the report with its bundle properties 
files to the server, I tried to specify the locale of the running report by passsing REPORT_LOCALE parameter in the url as shown above.
However the pdf output is rendered using server's locale ie en_US.

So I want to know how to specify the locale of the to be run report on the server via rest webservices, preferably v2 rest ws?

Thanks.

kairat.biy's picture
Joined: Dec 13 2012 - 3:24am
Last seen: 10 years 1 month ago

1 Answer:

I was able to solve my problem by appending userLocale=en to the login POST request. Then use the session key of the returned response for the upcoming next requests.

kairat.biy's picture
Joined: Dec 13 2012 - 3:24am
Last seen: 10 years 1 month ago
Feedback
randomness