mkusterm Posted April 24, 2008 Share Posted April 24, 2008 Hi All, I am using the list method of WSClient to get all the reports available to a user. These arein several folders/subfolders. Is there a simple way to:Get a complete list of reports / resources ina single request to the list() method? At the moment i am recursing a loop, calling list()repeatedly. Our high-latency network means this takesmore time than I wish for each call. thanks in advance for your helpmike Link to comment Share on other sites More sharing options...
Gaby38 Posted April 24, 2008 Share Posted April 24, 2008 In my case, I connect to the mysql meta database of jasper and i run a query on resource tables :Select JIResource.name,JIResourceFolder.uri,JIResource.label,JIResource.descriptionfrom JIResourceinner join JIResourceFolder on JIResourceFolder.id=JIResource.Parent_Folderwhere JIResource.id in (Select id from JIReportUnit) It's quite rough but efficient. You need a select login access to the mysql server and database. Link to comment Share on other sites More sharing options...
alex.chan Posted April 26, 2008 Share Posted April 26, 2008 Mike When you call list, you can do the following to specify the folder you want to start from: ...ResourceDescriptor rd = new ResourceDescriptor();rd.setParentFolder(parentFolder);list(rd, locale);... parentFolder = '/' means all the reports,parentFolder = '/report/samples' means only reports reside under this directory recursively. Link to comment Share on other sites More sharing options...
ruffp Posted July 31, 2008 Share Posted July 31, 2008 Hello,Is it still working with version 3?I get a return code 0, but nothing in the list. Can you give me a trace of the xml soap request (and response if possible) so that I can check with soapui?Thanks and best regards,Patrick 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