We are having a bit of trouble trying to get information about specific reports using the REST API. Below is a full description of our development, and examples. I couldn't copy of the API documentation, but I did find the link on your website.
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_cr_restful_ws_en.pdf
The development is all done in PHP, and using the PEAR HTTP_Request2 module to
perform the HTTP requests. I have confined the HTTP interaction within a
custom class 'CrystalReportsWebService', and also a helper class (struct)
called 'CrystalReportsFolderItem'. The source if you are interested is
available here :
http://andy.bddf.ca/claero/crystalREST/CrystalReportsFolderItem.phps
http://andy.bddf.ca/claero/crystalREST/CrystalReportsWebService.phps
The testing harness, and source code for it, that demonstrates where we are
currently stopped is here:
http://andy.bddf.ca/claero/crystalREST/reports.php
http://andy.bddf.ca/claero/crystalREST/reports.phps
---
We can successfully logon, and logoff to the remote server.
We can maintain an authentication token for subsequent requests.
We can obtain folder information, and object children via the following URLs :
http://<baseURI/infostore/<folderID>
http://<baseURI/infostore/<folderID>/children
Using the response(s) from those requests, we can parse the XML and traverse
the folder structure with multiple calls, and obtain a list of objects from a
specified folder that are of type "CrystalReport".
<attr name="type" type="string">CrystalReport</attr>
That's what is shown in the test harness. A list of entries from the
<folderID>/children that are of type "CrystalReport". Here is where we are
currently stopped.
We can not seem to obtain any information using the available API to get more
details on those reports. This is following the directions on pages 30,31
of the attached documentation.
http://<baseURI>/infostore/<reportID>/rpt
What we really will end up doing is exporting the reports in some way, for
example into PDFs. Using the following URL :
http://<baseURI>/infostore/<reportID>/rpt/export?mime_type=application/pdf
That failed at first attempt, so I backed up, and worked on simply getting the
information on said report. The documentation states using the URL
infostore/<reportID>/rpt, a GET request without any body should have a
response body of XML with the report_summary_info. This operation fails.
http://report.fieldinvoice.com:6405/biprws/infostore/9091/rpt
HTTP status code : 404
HTTP response body : "Resource not supported for the requested object. (RWS
00010) "
So if the /rpt is responding with 404, nothing after that is going to work
either. /rpt/instance for example ... or /rpt/export?mime_type=<mime>.
So we are not even trying to do _anything_ with the reports yet. We are
simply trying to obtain the information about the report using it's ID. And
that does not seem to be working, so we can not move forward with anything
reportID related.
--
any advice on what to start looking at to resolve this would be greatly appreciated.
Thanks,