Results 1 to 2 of 2
  1. #1
    lokesh939 is offline Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Post OBIEE Report using web services : problem using the htmlviewservice using servlets

    Hi All,
    I am trying to use HTMLViewService on obiee 11g to display report ouput in a jsp page. I have a Java Servlet to logon using SAWSessionService. I am able to see report data in xml format using XMLViewService...but when I use the HTMLViewService , I do not see any data , the jsp page just have a rotating clock image with auto-generated javascript and it does not contain javascript and css files any ideas?

    Code is:

    SAWSessionService locator = new SAWSessionService();
    SAWSessionServiceSoap soap = locator.getSAWSessionServiceSoap();
    String sessionID = soap.logon("test", "test");
    System.out.println(">>sessionID: " + sessionID);
    SAWLocale sawlocale = new SAWLocale();
    sawlocale.setLanguage(request.getLocale().getLangu age());
    sawlocale.setCountry(request.getLocale().getCountr y());
    //Set session parameters
    SAWSessionParameters sessionParameters = new SAWSessionParameters();
    sessionParameters.setUserAgent(request.getHeader(" User-Agent"));
    sessionParameters.setLocale(sawlocale);
    sessionParameters.setAsyncLogon(false);
    HtmlViewService htmlViewServiceLocator = new HtmlViewService();
    HtmlViewServiceSoap view = htmlViewServiceLocator.getHtmlViewService();
    ReportRef reportref;
    reportref = new ReportRef();
    reportref.setReportPath("/shared");
    StartPageParams startpageparams = new StartPageParams();
    startpageparams.setDontUseHttpCookies(true);
    String pageid = view.startPage(startpageparams, sessionID);
    ReportParams newreportParams = new ReportParams();
    ReportHTMLOptions htmlOptions = new ReportHTMLOptions();
    String reportid = "1";
    view.addReportToPage(pageid, reportid, reportref, null,newreportParams, htmlOptions, sessionID);
    StringBuffer reportHTML = new StringBuffer();
    reportHTML.append(view.getHtmlForPageWithOneReport ("test", reportref, null, null, null, null, sessionID));
    System.out.println(reportHTML.toString());

    Thanks

  2. #2
    MrGio is offline Member
    Join Date
    Apr 2017
    Posts
    1
    Rep Power
    0

    Default Re: OBIEE Report using web services : problem using the htmlviewservice using servlet

    Hi,
    I'm facing exactly the same issue.
    Have you solved it?

    Thanks in advance

Similar Threads

  1. Servlets and database problem
    By wdh321 in forum New To Java
    Replies: 9
    Last Post: 11-21-2012, 04:08 PM
  2. problem calling web services
    By sarah_jessica in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 01-21-2012, 08:15 PM
  3. Replies: 0
    Last Post: 08-18-2011, 08:42 AM
  4. Web Services: Axis vs Metro vs Spring Web Services
    By davidbaker29 in forum Advanced Java
    Replies: 0
    Last Post: 01-28-2009, 12:20 PM
  5. problem compiling servlets
    By boy22 in forum Java Servlet
    Replies: 1
    Last Post: 08-03-2007, 10:05 AM

Posting Permissions

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