2017 © Pedro Peláez
 

library phpssrs

PHP SQL Server Reporting Services Client Library

image

chriskl/phpssrs

PHP SQL Server Reporting Services Client Library

  • Sunday, October 13, 2013
  • by chriskl
  • Repository
  • 2 Watchers
  • 7 Stars
  • 6,364 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

phpssrs

Concrete SoapClient subclasses to access all four SQL Server Reporting Services endpoints:, (*1)

See also: Report Server Web Service Endpoints on TechNet, (*2)

Contributors

Originally developed by Chris Kings-Lynne, https://github.com/chriskl/phpssrs, (*3)

Pull requests are very welcome, this project is still rapidly being developed for an internal project. Send your requests against the dev branch., (*4)

SSRS Authentication

For this library to work, you will probably need to enable Basic Authentication on your report server. You must typically edit the C:\Program Files\Microsoft SQL Server\MSRS10_50\Reporting Services\ReportServer\rsreportserver.config file and add the following:, (*5)

<AuthenticationTypes>
  <!-- Existing authentication methods here, eg. NTLM, Kerberos -->
  <RSWindowsBasic/>
</AuthenticationTypes>

And then restart Reporting Services., (*6)

Note that basic authentication will send your password in clear text over the network, so only connect via SSL, or to safe internal report servers., (*7)

Example Usage

<?php
use \PhpSsrs\ReportingService2010\ReportingService2010;
use \PhpSsrs\ReportingService2010\CreateFolder;

// Replace WSDL URL with your URL, or even better a locally saved version of the file.
$rs = new ReportingService2010([
    'soap_version' => SOAP_1_2,
    'compression' => true,
    'exceptions' => true,
    'cache_wsdl' => WSDL_CACHE_BOTH,
    'keep_alive' => true,
    'features' => SOAP_SINGLE_ELEMENT_ARRAYS & SOAP_USE_XSI_ARRAY_TYPE,
    'login' => 'DOMAIN\\samaccountname',
    'password' => '###########'
], 'http://<ssrs server>/ReportServer/ReportService2010.asmx?wsdl');

$request = new CreateFolder('Test Folder', '/', []);
$response = $this->rs->CreateFolder($request);

Namespaces

The available SOAP clients are:, (*8)

  • \PhpSsrs\ReportExecutionService\ReportExecutionService
  • \PhpSsrs\ReportingService2005\ReportingService2005
  • \PhpSsrs\ReportingService2006\ReportingService2006
  • \PhpSsrs\ReportingService2010\ReportingService2010

The Versions

13/10 2013

dev-master

9999999-dev

PHP SQL Server Reporting Services Client Library

  Sources   Download

BSD-2-Clause

The Requires

  • ext-soap *

 

The Development Requires

by Chris Kings-Lynne

ssrs reporting services

13/10 2013

dev-dev

dev-dev

PHP SQL Server Reporting Services Client Library

  Sources   Download

BSD-2-Clause

The Requires

  • ext-soap *

 

The Development Requires

by Chris Kings-Lynne

ssrs reporting services

13/10 2013

v0.1.2

0.1.2.0

PHP SQL Server Reporting Services Client Library

  Sources   Download

BSD-2-Clause

The Requires

  • ext-soap *

 

The Development Requires

by Chris Kings-Lynne

ssrs reporting services

04/10 2013

v0.1.1

0.1.1.0

PHP SQL Server Reporting Services Client Library

  Sources   Download

BSD-2-Clause

The Requires

  • ext-soap *

 

The Development Requires

by Chris Kings-Lynne

ssrs reporting services

26/09 2013

v0.1.0

0.1.0.0

PHP SQL Server Reporting Services Client Library

  Sources   Download

BSD-2-Clause

The Requires

  • ext-soap *

 

The Development Requires

by Chris Kings-Lynne

ssrs reporting services