public function testLoadItemDefinitionsReturnsXMLStringWithInStdClass() { $soapMock = $this->getMockFromWsdl(dirname(__FILE__) . '/ReportTest/ReportService2010.wsdl', 'SoapClientMockDefinitions'); $soapMock->expects($this->any())->method('getItemDefinition')->with($this->equalTo(array('ItemPath' => '/Reports/Managed Account Performance'))); $ssrs = new SSRS_Report('http://test/ReportServer'); $ssrs->setSoapService($soapMock); $result = $ssrs->getItemDefinition('/Reports/Managed Account Performance'); }
<?php require '../library/SSRS/Report.php'; $options = array('username' => 'testing', 'password' => 'password'); $ssrs = new SSRS_Report('http://localhost/reportserver/', $options); $ItemPath = '/Reports/Reference_Report'; $result = $ssrs->getItemDefinition($ItemPath); header('Content-Type:text/xml'); echo $result;