Skip to content

I am unable to create connection with SSRS server - Fatal error: Class 'SSRS\Soap\NTLM' not found #34

Description

@krishna9720

Getting Error : Fatal error: Class 'SSRS\Soap\NTLM' not found

I am using following code :

    require(__DIR__ . '../../../vendor/autoload.php');
    //require('SSRS/library/SSRS/SSRSReport.php');
    require('chartblocks/php-ssrs/library/SSRS/Report.php');

    try {
        $options = array(
            'username' => 'chetu\krishnagsasa',
            'password' => 'Feb@2019asd'
        );

        $ssrs = new \SSRS\Report('http://192.168.10.1/ReportServer_SQLDEV', $options);
         //   $results = $ssrs->listRenderingExtensions();
        $result = $ssrs->loadReport('Report Project3/Report3');
        
        $ssrs->setSessionId($result->executionInfo->ExecutionID);
        $ssrs->setExecutionParameters(new SSRS_Object_ExecutionParameters($result->executionInfo->Parameters));

        $output = $ssrs->render('PDF'); // PDF | XML | CSV
        $output->download('report.pdf');
    } catch (\SSRS\SSRSReportException $ex) {
        die($ex->getMessage());
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions