|
@@ -44,12 +44,42 @@ class MySoapClient extends SoapClient
|
|
|
time()
|
|
time()
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- $response = parent::__doRequest($request, $location, $action, $version);
|
|
|
|
|
|
|
+ $exception = null;
|
|
|
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+
|
|
|
|
|
+ $response = parent::__doRequest($request, $location, $action, $version);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ catch (SoapFault $sf) {
|
|
|
|
|
+
|
|
|
|
|
+ //this code was not reached
|
|
|
|
|
+
|
|
|
|
|
+ $exception = $sf;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ catch (Exception $e) {
|
|
|
|
|
+
|
|
|
|
|
+ //nor was this code reached either
|
|
|
|
|
+
|
|
|
|
|
+ $exception = $e;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if((isset($this->__soap_fault)) && ($this->__soap_fault != null)) {
|
|
|
|
|
+
|
|
|
|
|
+ //this is where the exception from __doRequest is stored
|
|
|
|
|
+
|
|
|
|
|
+ $exception = $this->__soap_fault;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'zimbraEmail',
|
|
'zimbraEmail',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|
|
|
- $response,
|
|
|
|
|
|
|
+ $exception,
|
|
|
"Debug: response",
|
|
"Debug: response",
|
|
|
time()
|
|
time()
|
|
|
);
|
|
);
|