public function call($sessionId, $apiPath, $args = array()) { $response = parent::call($sessionId, $apiPath, $args); if ($this->boolLogActive) { $log = "SOAP Method (V1): {$apiPath}"; $log .= "\ncalled from {$_SERVER['REMOTE_ADDR']}"; $log .= "\nParameters: " . print_r(array_merge((array) $sessionId, $args), true); if ($this->boolLogVerbose) { $log .= "\nResponse: " . print_r($response, true); } Mage::log($log, null, $this->strLogfile, $this->forceLog); } return $response; }
/** * Logs V1 API call * * @param type $sessionId * @param type $apiPath * @param type $args * @return mixed Null or whatever API call method returns */ public function call($sessionId, $apiPath, $args = array()) { Mage::helper('inchoo_soaplogger/v1')->logPostXml(); return parent::call($sessionId, $apiPath, $args); }