How to pull the contents of a file resource on JasperReports Server


I would like to be able to pull the contents of the schema xml file from JasperReports Server using Web service. How do I do that?


The following is an example (code snippets) about pulling the XML content from the JasperReports Server:

// After you have obtained the WSClient

ResourceDescriptor rd = new ResourceDescriptor();


wsClient.get(rd, new File("c:/schemas/SchemaA.xml");

Particularly, the wsClient.get() takes the second argument as a that it actually outputs the content to.

Ref. Case #00020309 -- 02:24, 1 June 2011 (UTC)