Jump to content
Changes to the Jaspersoft community edition download ×
  • How to pull the contents of a file resource on JasperReports Server


    michaelzhou
    • Product: JasperReports® Server

    Issue:

    [toc on_off::hide=1]

    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?


    Resolution:

    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();

    rd.setUriString("/organizations/organization_1/analysis/schemas/FoodmartSchema");

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

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


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


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...