diff options
author | Filipp Lepalaan <filipp@mac.com> | 2011-04-29 23:41:29 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2011-04-29 23:41:29 +0300 |
commit | 584981a53ec5c0d1a5b6cf3d4d3f0f374ca6df3f (patch) | |
tree | 14e0d49d59af15c162f68167d92601254fc61eca /gsxlib.php | |
parent | 30c626889bcaf69afdff190057b794f89970422c (diff) | |
download | gsxlib-584981a53ec5c0d1a5b6cf3d4d3f0f374ca6df3f.tar.gz gsxlib-584981a53ec5c0d1a5b6cf3d4d3f0f374ca6df3f.tar.bz2 gsxlib-584981a53ec5c0d1a5b6cf3d4d3f0f374ca6df3f.zip |
more graceful handling of invalid SN, more complete usage example
Diffstat (limited to 'gsxlib.php')
-rw-r--r-- | gsxlib.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -95,7 +95,13 @@ class GsxLib 'unitDetail' => array('serialNumber' => $serialNumber) )); - $result = $this->client->WarrantyStatus($a); + try { + $result = $this->client->WarrantyStatus($a); + } catch (SoapFault $e) { + trigger_error($e->getMessage()); + return FALSE; + } + return $result->WarrantyStatusResponse->warrantyDetailInfo; } |