Amadeus session error with cakephp

1

First, let me clarify that I know the documentation is private. I have the documentation in hand, I followed everything right, but amadeus still gives this error:

  

17 | Session | No agreement on destination

My method in Client.php is asism:

public function pnrCancel($pnr_id){
    //die($pnr_id);
    $params = array();        
    $params['PNR_Cancel']['pnrActions']['optionCode'] = 10;        
    $params['PNR_Cancel']['cancelElements']['entryType'] = 'I';  
    $params['PNR_Cancel']['reservationInfo']['reservation'] = $pnr_id; 


    $this->_data = $this->_client->__soapCall('PNR_Cancel', $params, null,
        $this->getHeaderSession(), $this->_headers);  

    $this->debugDump($params, $this->_data);
}

And my action looks like this:

public function deletePnr($pnr){        
     $ws = new Client(__DIR__ . DS . '..' . DS . 'wsdl' . DS . '1ASIWIOPIEM_PDT_20140828_132845.wsdl', false);
        $ws->securityAuthenticate('xxx', 'xxx', 'xxx=', lenght, 'xxx');
        $ws->pnrCancel($pnr);
        $pnrXml = $ws->getXml();
        $ws->securitySignout();                                                                           
}

I've done everything but insists on giving this session error, all my other pnr functions work normally.

    
asked by anonymous 27.01.2016 / 18:56

0 answers