Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

HtmlViewService generating ServerSOAPFaultException Type mismatch of catalog object

Question
1
Views
0
Comments
Rank 4 - Community Specialist

I am trying to use the BI WebService to get a report's HTML back to a Java app (NetBeans).

I am able to log in and start a page but when I attempt to addReportToPage, a ServerSOAPFaultException is generated with the following error:

Type mismatch of catalog object /shared/Dashboards/_portal/MyPage/MyReportName -- expect , got .  Please see the server log to find more detail regarding exact cause of the failure.

Here is my code:

public class SvcTest {    public static void main(String[] args) throws Exception {        final Service htmlViewService = Service.create(                new URL("http://MyServer.com:9704/analytics/saw.dll/wsdl/v7"),                 new QName("urn://oracle.bi.webservices/v7", "HtmlViewService"));                final HtmlViewServiceSoap myService = htmlViewService.getPort(HtmlViewServiceSoap.class);                SAWSessionService service = new SAWSessionService();        SAWSessionServiceSoap port = service.getSAWSessionServiceSoap();        String sessionId = port.logon("MyUser", "MyPassword");        StartPageParams pageParams = new StartPageParams();        String pageId = myService.startPage(pageParams, sessionId);                ReportRef reportRef = new ReportRef();        reportRef.setReportPath("/shared/Dashboards/_portal/MyPage/MyReport");                try {            myService.addReportToPage(pageId, "MyReport", reportRef, null, null, null, sessionId);        } catch (Exception e) {            e.printStackTrace();        }        port.logoff(sessionId);    }    }

I tried to create a SOAP Handler but the handleMessage() method never gets called (The handleMessage() method only gets called for SAWSessionService).

Any help would be appreciated.

Raymond

Welcome!

It looks like you're new here. Sign in or register to get started.