Browse Source

debug soap response

andre 1 year ago
parent
commit
3792862e0a
1 changed files with 6 additions and 5 deletions
  1. 6 5
      app/Libs/Zimbra/Components/Api/Soap/MySoapClient.php

+ 6 - 5
app/Libs/Zimbra/Components/Api/Soap/MySoapClient.php

@@ -31,6 +31,7 @@ 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__,
@@ -41,10 +42,10 @@ class MySoapClient extends SoapClient
                 $version
             ],
             "Debug: request, location, action, version",
-            $this
+            $response
         );
 
-        return parent::__doRequest($request, $location, $action, $version);
+        return $response;
     }
 
     /**
@@ -57,6 +58,7 @@ 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__,
@@ -68,11 +70,10 @@ class MySoapClient extends SoapClient
                 $output_headers
             ],
             "Debug: function_name, arguments, options, input_headers, output_headers",
-            $this
+            $response
         );
 
-        //todo logg
-        return parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers); // TODO: Change the autogenerated stub
+        return $response;
     }