I have been involved in deploying SSRS SDK ( http://ssrsphp.codeplex.com ) to access Reporting Services for a while now. But whatever tutorials, blogs, working samples I have followed indicate using “SQL Server 2008 Express with Advanced Services edition”. Is this SDK only supported in that edition.
At the moment I am using SQL Server 2008 (not the express edition). And all I got till now is this:-
Failed to connect to Reporting Service
Make sure that the url (http://localhost:80/reportServer/) and credentials are correct!
for the codes:-
<?php require_once 'SSRSReport.php';
try{
$ssrs_report = new SSRSReport(new Credentials(UID, PASWD), SERVICE_URL);
}catch (SSRSReportException $serviceException){
echo $serviceException->GetErrorMessage();
}?>
Although I have properly Setup Reporting Server in my Machine and also my credentials are right; but I am getting nowhere arround.
Found that it is acutally possible to use SSRSPHP in Enterprise Edition. This library throws exception all the time when the code tries to see if web service URL is OK. See following lines on SSRSReport.php starting at Line 195:
You see this exception of “Failed to connect to Reporting Service…” appeared all time for me and others as well. This is unrepairable error. I can explain this but its not the right time. Just let it be like this below and job is done.
It works, really! this has been working for me. I hope that does to you too.