/** * Возвращает результат сервисного взаимодействия * @param string $method имя метода * @param array $args аргументы * @return Response */ protected function implementationCall($method, array $args = []) { try { $args = array_merge($this->defaultArgs, $args); $result = $this->impl->__soapCall($method, $args); if (isset($this->config['__map'][$method])) { $result = $this->impl->mapSoapResult($result, $method, $this->config['__map']); } return Response::success($result); } catch (SoapFault $e) { $message = $e->getMessage(); $this->loggerNotice($message, AbstractLogger::ERROR); return Response::failure(null, $message); } }