Jump to content

WSClient request


mkusterm

Recommended Posts

Hi All,

I am using the list method of WSClient to

get all the reports available to a user. These are

in several folders/subfolders.

 

Is there a simple way to:

Get a complete list of reports / resources in

a single request to the list() method?

 

At the moment i am recursing a loop, calling list()

repeatedly. Our high-latency network means this takes

more time than I wish for each call.

 

thanks in advance for your help

mike

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.description

from JIResource

inner join JIResourceFolder on JIResourceFolder.id=JIResource.Parent_Folder

where 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

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

  • 3 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...