Can't connect to SSRS in PHP

Mar 3, 2014 at 1:33 AM
Edited Mar 3, 2014 at 1:39 AM
I'm using SSRS SDK for PHP

PHP Version 5.4

webserver: Centos 6.4

MSSQL Server 2008 R2
define("UID", "xxxxx\xxxxx");
define("PASWD", "xxxxx");
define("SERVICE_URL", "");
try {
$ssrs_report = new SSRSReport(new Credentials(UID, PASWD), SERVICE_URL);
} catch (SSRSReportException $serviceException) {
echo $serviceException->GetErrorMessage() . "<br>";
When I try to connect SSRS report, it is throughing the following error:
Failed to connect to Reporting Service
Make sure that the url ( and credentials are correct!
The same credentials & link are accessible through browser without problem. But, through SSRS SDK it is not working.

I was looking for a solution in the net and I find that using the file TestSSRSConnection.php I could get more details but I dont know how to use it, and I cant find any documentation about it.
$testSSRSConnection = new TestSSRSConnection("/\xxxxx/xxxxx");
Testing it I get the following error:
Usage:TestSSRSConnection.php /server: /report: /uid: /pwd: [/datasource: /uid: /pwd:]
Some idea how to go forward in this topic?