ruffp Posted July 24, 2008 Share Posted July 24, 2008 Hello,I am trying to modify an existing ReportUnit (RU). I just tried the following way: ResourceDescriptor rd = new ResourceDescriptor(); rd.setWsType(ResourceDescriptor.TYPE_REPORTUNIT ); rd.setUriString("/userFolder/test-1-ru"); ResourceDescriptor ru = repoService.get( rd, null); ru.setLabel("changed label"); repoService.addOrModify( ru, null);This work as I can see the RU with ne new label with the admin console, but when executing it, it make a MalformedURIException. I tried also to put the PROP_REFERENCE_REPORT_URI (don t remember exactly the right name but correct in my code) as explained in the WebServices doc but it still make these errors.Do you have more precise documentation about what options is mandatory to set for every operation we can do to these documents (RU, RU options and so on) especially the modify and create new items.I have the same problem when trying to modify the options for a report unit (the values are never modified).Patrick Link to comment Share on other sites More sharing options...
swood Posted August 9, 2008 Share Posted August 9, 2008 There is the Web Services Guide PDF.Have a look at the source download. It includes web services unit tests under jasperserver-remote-tests, and a sample JSP based web application that calls the JasperServer web services. ShermanJaspersoft Link to comment Share on other sites More sharing options...
ruffp Posted August 11, 2008 Author Share Posted August 11, 2008 hello,Thanks for the tip, I already saw these example but what I wanted to explain in my second post is that I cannot find samples for ReportUnit Options.The tests with Report units is wirking for me now.Regarding the Options, I just saw that there's a //todo implement here in the update function for report options and just want to know if it is the same for the creation.Best regards,PatrickPS: sorry for the blank post before, I wrote almost the same post but when it was posted the content has been dropped Link to comment Share on other sites More sharing options...
lucianc Posted August 12, 2008 Share Posted August 12, 2008 Creating or updating saved report options via web services is not currently supported.Regards,Lucian Link to comment Share on other sites More sharing options...
waalp Posted October 3, 2011 Share Posted October 3, 2011 Did you solve the problem with the MalformedURIException ? I got the same problem. Greetings,Peter 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