Пример #1
0
 public function cancelTicket(ConfirmTicketRequest $confirmTicketRequest)
 {
     try {
         $serviceType = 'ReversaOperacion';
         $params = array("E_aEmpresaSolicita" => $confirmTicketRequest->getCveEmpresaSolicita(), "E_aOperacionAreversar" => $confirmTicketRequest->getFolioReservacion(), "E_aEmpresaViaja" => $confirmTicketRequest->getCveEmpresaViaje());
         $soapResponse = $this->soapClient->__soapCall($serviceType, $params);
         $lastRequest = $this->soapClient->__getLastRequest();
         $lastRequestDateTime = new \DateTime();
         $lastResponseDateTime = new \DateTime();
         $logEntryEtn = new LogEntryEtn();
         $logEntryEtn->setLastRequest($lastRequest);
         $logEntryEtn->setLastResponse($soapResponse);
         $logEntryEtn->setLastRequestDateTime($lastRequestDateTime);
         $logEntryEtn->setLastResponseDateTime($lastResponseDateTime);
         $this->setCommunicationLog($logEntryEtn);
         return $soapResponse;
     } catch (\Exception $e) {
         return $e;
     }
 }