This project is read-only.

PHP SSRS no output?

Jun 29, 2012 at 12:19 PM
Edited Jun 29, 2012 at 12:19 PM

Im using this code from the SSRS SDK for PHP User Guide.htm

It should promt all the available reports, but I'm getting a blank page.  (no output)

(there are reports available when I login (manually) with the useraccount which I'm using on the SSRS)

(the connection seems to be right, bevause when I change the password for the user It gives me an error "Make sure that the url (http://***/ReportServer/) and credentials are correct!" )

Can somebody help me figure out why im not getting any output?

Client: Debian, Apache2 + php5
Server: SSRS 2008



require_once 'SSRSReport.php';

define("UID", "***");
define("PASWD", "***");
define("SERVICE_URL", "http://localhost/ReportServer/");
    $ssrs_report = new SSRSReport(new Credentials(UID, PASWD), SERVICE_URL);
    $catalogItems = $ssrs_report->ListChildren("/", true);
    $reports = array();
    foreach ($catalogItems as $catalogItem) {
       if ($catalogItem->Type == ItemTypeEnum::$Report) {
           $reports[] = array(
                                "Name" => $catalogItem->Name,
                                "Path" => $catalogItem->Path
catch (SSRSReportException $serviceException)
    echo $serviceExcprion->GetErrorMessage();