andre 1 год назад
Родитель
Сommit
a804c1bb8e
1 измененных файлов с 22 добавлено и 4 удалено
  1. 22 4
      app/Libs/Zimbra/Components/Api/Soap/MySoapClient.php

+ 22 - 4
app/Libs/Zimbra/Components/Api/Soap/MySoapClient.php

@@ -31,7 +31,6 @@ class MySoapClient extends SoapClient
             $request = str_replace(array('ns1:DistributionListActionRequest', 'xmlns:ns2="urn:zimbra"'), array('ns2:DistributionListActionRequest', 'xmlns:ns2="urn:zimbraAccount"'), $request);
         }
 
-        $response = parent::__doRequest($request, $location, $action, $version);
         logModuleCall(
             'zimbraEmail',
             __FUNCTION__,
@@ -42,7 +41,17 @@ class MySoapClient extends SoapClient
                 $version
             ],
             "Debug: request, location, action, version",
-            $response
+            time()
+        );
+
+        $response = parent::__doRequest($request, $location, $action, $version);
+
+        logModuleCall(
+            'zimbraEmail',
+            __FUNCTION__,
+            $response,
+            "Debug: response",
+            time()
         );
 
         return $response;
@@ -58,7 +67,6 @@ class MySoapClient extends SoapClient
      */
     public function __soapCall($function_name, array $arguments, array $options = null, $input_headers = null, array &$output_headers = null)
     {
-        $response = parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers);
         logModuleCall(
             'zimbraEmail',
             __FUNCTION__,
@@ -70,7 +78,17 @@ class MySoapClient extends SoapClient
                 $output_headers
             ],
             "Debug: function_name, arguments, options, input_headers, output_headers",
-            $response
+            time()
+        );
+
+        $response = parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers);
+
+        logModuleCall(
+            'zimbraEmail',
+            __FUNCTION__,
+            $response,
+            "Debug: function_name, arguments, options, input_headers, output_headers",
+            time()
         );
 
         return $response;