从ssrsphp.codeplex.com网站上下载了SQL Server Reporting Service SDK for PHP,在使用当中遇到了问题,紧急求助。我需要通过php连接到SQL Server Reporting Service 2008,在以上网站下载微软官方的SDK,但是始终无法连接上SQL Server Reporting Service 2008?网络中相关资料很少,特在此求教高人。1、数据库用户名,密码,服务器名,IP地址,这些用.NET连接测试过,都没有问题。2、以下代码运行以后,总是显示[errorDescription] => Failed to connect to Reporting Service,不知道问题出在哪里?是PHP环境问题,还是SDK问题。连接代码如下:<?php
require_once 'SSRSReport.php';
//define("UID", '服务器名省略\用户名省略');
//define("PWD", "密码省略");
define("SERVICE_URL", "http://{局域网iP地址:这里就省略了}/ReportServer/");
define("REPORT", "/Reports/report");try
{
    $ssrs_report = new SSRSReport(new Credentials('UID','PWD'), SERVICE_URL);

if (isset($_REQUEST['rs:ShowHideToggle']))
    {
       $ssrs_report->ToggleItem($_REQUEST['rs:ShowHideToggle']);
    }
else
{
$ssrs_report->LoadReport2(REPORT, NULL);
}    $renderAsHTML = new RenderAsHTML();
$renderAsHTML->ReplacementRoot = getPageURL();
    $result_html = $ssrs_report->Render2($renderAsHTML,
                                PageCountModeEnum::$Estimate,
                                $Extension,
                                $MimeType,
                                $Encoding,
                                $Warnings,
                                $StreamIds);    echo '<div style="overflow:auto; width:1000px; height:700px">';
    echo $result_html;
    echo '</div>';
}
catch (SSRSReportException $serviceException)
{
    print("<pre>");
    print_r($serviceException);
    print("</pre>");
}function getPageURL()
{
    $PageUrl = $_SERVER["HTTPS"] == "on"? 'https://' : 'http://';
    $uri = $_SERVER["REQUEST_URI"];
    $index = strpos($uri, '?');
    if($index !== false)
    {
        $uri = substr($uri, 0, $index);
    }
    $PageUrl .= $_SERVER["SERVER_NAME"] .
                ":" .
                $_SERVER["SERVER_PORT"] .
                $uri;
    return $PageUrl;
}
?>