sunspikes / php-amadeus Goto Github PK
View Code? Open in Web Editor NEWAmadeus flight booking client for PHP
License: MIT License
Amadeus flight booking client for PHP
License: MIT License
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?
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>
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"
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
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!
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?
Hi,
I have work with Amadeus. In Which Scenario, the following error messages will thrown from Amadeus
93|Session|Illogical conversation & 95|Session|Inactive conversation
Can you please explain the Scaenario?
help?
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.
$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';
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.