ssrs connection with PHP

Asked

Viewed 100 times

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();
    }
?>

he 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 with Reporting services and can help me, I would be grateful.

  • Check Firewall, if port 8080 is allowed

  • yes, I even use it in other services, which obviously are not startados.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.