ssrs connection with PHP

1

I'm trying to connect with reporting services using ssrs sdk for PHP, here is my connection code:

<?php
    require_once 'bin/SSRSReport.php';


    define("UID", "********");
    define("PASWD", "*********");
    define("SERVICE_URL", "http://meu-pc:8080/ReportServer");
    try
    {
        $ssrs_report = new SSRSReport(new Credentials(UID, PASWD), SERVICE_URL);                
    }
    catch (SSRSReportException $serviceException)
    {
        echo $serviceException->GetErrorMessage();
    }
?>

It shows me the following result:

array ( 
0 => 'HTTP/1.1 401 Unauthorized', 
1 => 'Content-Length: 0', 
2 => 'WWW-Authenticate: NTLM', 
3 => 'Date: Wed, 29 Oct 2014 16:18:30 GMT', 
4 => 'Connection: close', )
Failed to connect to Reporting Service 
Make sure that the url (http://meu-pc:8080/ReportServer/) and credentials are correct!

If someone has already used this library or knows another for connection to reporting services and can help me, I'll be grateful.

    
asked by anonymous 29.10.2014 / 17:33

0 answers