US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Access Pentaho report from Version 7.1 community

  1. #1
    Join Date
    May 2010
    Posts
    128

    Default Access Pentaho report from Version 7.1 community

    Hello folks,

    I need your help. Acutually i was using Pentaho reporting 3.6 version from last six years and now I want to move it to latest version.
    Everything is working fine except making the connection between my java application and penatho server.Earlier I used HTTP client credentials method to access reports from penatho server.

    I think a lot has been changed in it.Do u have any idea how to call pentaho reports from Java application.

    My earlier code is like:

    method.setPath("/pentaho/content/reporting?renderMode=report&solution=bi-developers&path=reporting&output-type=txt&name=24qlive.prpt");
    // method.setPath("/pentaho/content/reporting?renderMode=report&solution=bi-developers&path=reporting&output-type=txt&name=24qPart2.prpt");
    response.setContentType("text/simple");
    response.setHeader("Content-Disposition",
    "attachment;filename=24QRQ" + prd_id + ".txt");
    Credentials defaultcreds = new UsernamePasswordCredentials(
    "admin", "password");
    HttpClient client = new HttpClient();
    client.getState().setCredentials(null, null, defaultcreds);
    client.getState().setAuthenticationPreemptive(true);
    int statusCode = client.executeMethod(method);

  2. #2
    Join Date
    May 2010
    Posts
    128

    Default

    Finally, I resolved it by using http client credentials.

    The code is below:

    Every thing is same except this:

    method.setPath("/pentaho/api/repos/ublic:reporting:tsttextoutput.prpt/report?output-target=pageable/text");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •