function call($methodName, $params = null) { try { OX_M2M_M2MProtectedRpc::dumpCall($this->serviceExecutor, $methodName, $params); $fullParams = $this->addCredentials($params); $result = $this->serviceExecutor->call($methodName, $fullParams); OX_M2M_M2MProtectedRpc::dumpResult($this->serviceExecutor, $methodName, $params, $result); return $result; } catch (Exception $e) { //echo "<BR><BR>" . $e->getTraceAsString() . "<BR><BR>"; if ($e->getCode() == OX_M2M_XmlRpcErrorCodes::$TICKET_EXPIRED) { $this->m2mTicketProvider->getTicket(true); return $this->call($methodName, $params); } throw $e; } }
function call($methodName, $aParams = null) { return $this->rpcExecutor->call($this->prefix . $methodName, $aParams); }