diff options
Diffstat (limited to 'samples/GetItemDefinition.php')
-rwxr-xr-x | samples/GetItemDefinition.php | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/samples/GetItemDefinition.php b/samples/GetItemDefinition.php index 5139500..ff62818 100755 --- a/samples/GetItemDefinition.php +++ b/samples/GetItemDefinition.php @@ -2,22 +2,15 @@ require('../library/SSRS/Report.php'); -try { - $options = array( - 'username' => 'testing', - 'password' => 'password' - ); +$options = array( + 'username' => 'testing', + 'password' => 'password' +); - $ssrs = new SSRS_Report('http://localhost/reportserver/', $options); +$ssrs = new SSRS_Report('http://localhost/reportserver/', $options); - $ItemPath = '/Reports/Reference_Report'; +$ItemPath = '/Reports/Reference_Report'; +$result = $ssrs->getItemDefinition($ItemPath); - $result = $ssrs->getItemDefinition($ItemPath); - - header('Content-Type:text/xml'); - echo $result; -} catch (Exception $error) { - echo 'Exception:' . PHP_EOL; - print_r($error); -} -?> +header('Content-Type:text/xml'); +echo $result;
\ No newline at end of file |