diff options
author | arron <arron@copiadigital.co.uk> | 2013-12-05 18:28:08 +0000 |
---|---|---|
committer | arron <arron@copiadigital.co.uk> | 2013-12-05 18:28:08 +0000 |
commit | e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017 (patch) | |
tree | b7f17446bd2cbdb7dda26d04cbdc65679c8557f2 /library/SSRS/Soap/NTLM.php | |
parent | e4ee94dbc8be64f9b53f1a323a314a60d0ac86d3 (diff) | |
download | php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.zip php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.tar.gz php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.tar.bz2 |
Namespaced
Diffstat (limited to 'library/SSRS/Soap/NTLM.php')
-rwxr-xr-x | library/SSRS/Soap/NTLM.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/library/SSRS/Soap/NTLM.php b/library/SSRS/Soap/NTLM.php index 929a642..084e92c 100755 --- a/library/SSRS/Soap/NTLM.php +++ b/library/SSRS/Soap/NTLM.php @@ -1,6 +1,8 @@ <?php -class SSRS_Soap_NTLM extends SoapClient { +namespace SSRS\Soap; + +class NTLM extends \SoapClient { protected $_uri; protected $_username; @@ -154,9 +156,9 @@ class SSRS_Soap_NTLM extends SoapClient { $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($httpCode >= 300 && $httpCode <= 600) { - throw SSRS_Soap_ServerException::fromResponse($response); + throw ServerException::fromResponse($response); } else if ($httpCode !== 200) { - throw new SSRS_Soap_Exception('HTTP error: ' . $httpCode . ' ' . $response, $httpCode, $response); + throw new Exception('HTTP error: ' . $httpCode . ' ' . $response, $httpCode, $response); } curl_close($handle); |