Categories
- All Categories
- 4 Oracle Analytics Sharing Center
- 11 Oracle Analytics Lounge
- 189 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.4K Oracle Analytics Forums
- 5.9K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 65 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
HtmlViewService generating ServerSOAPFaultException Type mismatch of catalog object

Ray Kelly
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
0