Coder Social home page Coder Social logo

php-amadeus's People

Contributors

ricardofontanelli avatar sunspikes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-amadeus's Issues

Error in fareMasterPricerTravelBoardSearch

You are defining $travellers['I'] as INFANTS, but the docs says that it should be 'IN' instead. Is this right? I'm still adapting the method and didn't test it, but that's what the docs says. Can someone confirm it?

IssueTicet

I Want IssueTicket And Email Itinary please Help Me!!
I Send This Sample But Get Error:

<DocIssuance_IssueTicket xmlns="http://xml.amadeus.com/TTKTIQ_09_1_1A">
  <optionGroup>
    <switches>
      <statusDetails>
        <indicator>ITR</indicator>
      </statusDetails>
    </switches>
  </optionGroup>
  <otherCompoundOptions>
    <attributeDetails>
      <attributeType>ETC</attributeType>
      <attributeDescription>GF</attributeDescription>
    </attributeDetails>
  </otherCompoundOptions>
  <otherCompoundOptions>
    <attributeDetails>
      <attributeType>EMPR</attributeType>
      <attributeDescription>[email protected]</attributeDescription>
    </attributeDetails>
  </otherCompoundOptions>
</DocIssuance_IssueTicket>

error format not valid.


if Send This XML send to amadeus ticket Issue But email not work

<DocIssuance_IssueTicket xmlns="http://xml.amadeus.com/TTKTIQ_09_1_1A">
  <otherCompoundOptions>
    <attributeDetails>
      <attributeType>ETC</attributeType>
      <attributeDescription>GF</attributeDescription>
    </attributeDetails>
  </otherCompoundOptions>

</DocIssuance_IssueTicket>

if Send This XML send to amadeus

<DocIssuance_IssueTicket xmlns="http://xml.amadeus.com/TTKTIQ_09_1_1A">
  <otherCompoundOptions>
    <attributeDetails>
      <attributeType>EMPR</attributeType>
      <attributeDescription>[email protected]</attributeDescription>
    </attributeDetails>
  </otherCompoundOptions>

</DocIssuance_IssueTicket>

Error:BSP: "TICKETING NOT ALLOWED - PLEASE USE DIRECT DISTRIBUTION"

Error header session

Hello,

I'am french and work with Amadeus. But your class generate error for me.

 public function pnrRetrieve($pnr_id)
    {
        $params = array();
        $params['PNR_Retrieve']['retrievalFacts']['retrieve']['type'] = 2;
        $params['PNR_Retrieve']['retrievalFacts']['reservationOrProfileIdentifier']['reservation']['controlNumber'] = $pnr_id;

        $this->_data = $this->_client->__soapCall('PNR_Retrieve', $params, null,
            new \SoapHeader(Client::AMD_HEAD_NAMESPACE, 'Session', $this->_headers['Session']), $this->_headers);

        var_dump($this->_client->__getLastRequest());
        $this->debugDump($params);
    }

return :

99|Session|Not authenticated

or if I write this :

 $this->_data = $this->_client->__soapCall('PNR_Retrieve', $params, null,
            new \SoapHeader(Client::AMD_HEAD_NAMESPACE, 'SessionId', $this->_headers['Session']->SessionId), $this->_headers);

return :

98|Session|Bad SecurityToken

are you one idea ?

help

Startup

Hi,

I'm just a starter, I need help with the startup.
I just did the following steps,
composer require amabnl/amadeus-ws-client
require 'vendor/autoload.php';

I need to know where I can configure the WSAP endpoint, AgentDutyCode, Office IDs, user ID, and passwords and how to do simple Fare_MasterPricerTravelBoardSearch, appreciate the help. thank you!

Thank you!

Hello! need help

at the beginng of parsing wsdl file we have error
new wsdl file is 1.2 version with header 4

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute in /var/www/WBS/githubTest/client.php:52 Stack trace: #0 /var/www/WBS/githubTest/client.php(52): SoapClient->SoapClient('../1ASDEUFN_...', Array) #1 /var/www/WBS/githubTest/example_client.php(14): Amadeus\Client->_construct('../1ASDEUFN...', true) #2 {main} thrown in /var/www/WBS/githubTest/client.php on line 52

any idea?

Fare_MasterPricerTravelBoardSearch -

Hi, I am getting this error,,, "Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 33554432 bytes)" for Fare_MasterPricerTravelBoardSearch method.
set max memory size, everythig done but still this error happen.
Could you please help.

Bug in fareMasterPricerTravelBoardSearch

    $params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing']['priceType'] = 'ADI';                     
    $params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing']['priceType'] = 'TAC';
    $params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing']['priceType'] = 'RU';
    $params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing']['priceType'] = 'RP';

It gives as result only the last value (RP). Shouldn't be?:

$params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing'][0]['priceType'] = 'ADI';
$params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing'][1]['priceType'] = 'TAC';
$params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing'][2]['priceType'] = 'RU';
$params['Fare_MasterPricerTravelBoardSearch']['fareOptions']['pricingTickInfo']['pricingTicketing'][3]['priceType'] = 'RP';

Error Header Amadeus with cakephp

I'm Brazilian and i work with amadeus.

The problem is, i'm trying use pnr_cancel, that needs a pnr has been retrieved.
But, the following error appears:

17 | Session | no agreement on destination.

And my code is that:

My action in controller is:

`public function deletePnr($pnr) {
$ws = new Client(DIR . DS . '..' . DS . 'wsdl' . DS . '1ASIWIOPIEM_PDT_20140828_132845.wsdl', false);

    $ws->securityAuthenticate('xxxxx', 'xxxxx', 'xxxxx=', x, 'xxxxxx');                
    $ws->pnrRetrieve($pnr);                        
    $ws->pnrCancel();        
    $ws->securitySignout();                                          
}`

and my methods in Lib is:

`public function pnrRetrieve($pnr_id)
{
$params = array();
$params['PNR_Retrieve']['retrievalFacts']['retrieve']['type'] = 2;
$params['PNR_Retrieve']['retrievalFacts']['reservationOrProfileIdentifier']['reservation']['controlNumber'] = $pnr_id;

    //die(print_r($params));

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

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

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

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

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

PS: I'm using cakephp 2x

Hello! need help

at the beginng of parsing wsdl file we have error
new wsdl file is 1.2 version with header 4

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute in /var/www/WBS/githubTest/client.php:52 Stack trace: #0 /var/www/WBS/githubTest/client.php(52): SoapClient->SoapClient('../1ASDEUFN_...', Array) #1 /var/www/WBS/githubTest/example_client.php(14): Amadeus\Client->_construct('../1ASDEUFN...', true) #2 {main} thrown in /var/www/WBS/githubTest/client.php on line 52

any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.