-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error recognizing message versions in Request Creator #71
Comments
Well, I did fix a bug recently that may have changed the way the Pricing messages are being constructed. Could you step through the code and see if |
Lib is using |
well shit. |
What PHP version are you running? And what OS? |
It is dockerized container
|
How do you recognise version in the lib? I think the code change should not break it as I checked:
|
That's done in the |
You don't happen to have multiple versions of this message in your WSDL? |
No, just this one.
|
This is quite weird, it should still work:
|
Can you add the following line to
|
/var/www/html/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client/Session/Handler/Base.php:322:
array (size=39)
'Air_FlightInfo' =>
array (size=2)
'version' => string '7.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Air_RebookAirSegment' =>
array (size=2)
'version' => string '3.2' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Air_SellFromRecommendation' =>
array (size=2)
'version' => string '5.2' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Command_Cryptic' =>
array (size=2)
'version' => string '7.3' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'DocIssuance_IssueCombined' =>
array (size=2)
'version' => string '15.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'DocIssuance_IssueMiscellaneousDocuments' =>
array (size=2)
'version' => string '15.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'DocIssuance_IssueTicket' =>
array (size=2)
'version' => string '15.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'DocRefund_InitRefund' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'DocRefund_ProcessRefund' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'DocRefund_UpdateRefund' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'FOP_CreateFormOfPayment' =>
array (size=2)
'version' => string '14.6' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Fare_CheckRules' =>
array (size=2)
'version' => string '7.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Fare_ConvertCurrency' =>
array (size=2)
'version' => string '8.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Fare_InformativePricingWithoutPNR' =>
array (size=2)
'version' => string '14.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Fare_MasterPricerTravelBoardSearch' =>
array (size=2)
'version' => string '14.3' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Fare_PricePNRWithBookingClass' =>
array (size=2)
'version' => string '14.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'MiniRule_GetFromETicket' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'MiniRule_GetFromPricing' =>
array (size=2)
'version' => string '11.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'MiniRule_GetFromPricingRec' =>
array (size=2)
'version' => string '11.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'PNR_AddMultiElements' =>
array (size=2)
'version' => string '14.2' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'PNR_Cancel' =>
array (size=2)
'version' => string '14.2' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'PNR_Retrieve' =>
array (size=2)
'version' => string '14.2' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'PNR_Search' =>
array (size=2)
'version' => string '15.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Queue_PlacePNR' =>
array (size=2)
'version' => string '3.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Security_Authenticate' =>
array (size=2)
'version' => string '6.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Security_SignOut' =>
array (size=2)
'version' => string '4.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Service_IntegratedPricing' =>
array (size=2)
'version' => string '15.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Service_StandaloneCatalogue' =>
array (size=2)
'version' => string '16.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_ATCShopperMasterPricerTravelBoardSearch' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_CancelDocument' =>
array (size=2)
'version' => string '11.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_CheckEligibility' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_CreateTSMFareElement' =>
array (size=2)
'version' => string '10.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_CreateTSMFromPricing' =>
array (size=2)
'version' => string '9.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_CreateTSTFromPricing' =>
array (size=2)
'version' => string '4.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_DisplayTSMP' =>
array (size=2)
'version' => string '13.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_DisplayTST' =>
array (size=2)
'version' => string '15.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_ProcessETicket' =>
array (size=2)
'version' => string '4.1' (length=3)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_ReissueConfirmedPricing' =>
array (size=2)
'version' => string '13.2' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
'Ticket_RepricePNRWithBookingClass' =>
array (size=2)
'version' => string '14.3' (length=4)
'wsdl' => string 'dc22e4ee' (length=8) |
While printing directly in var_dump($version);
var_dump(floatval($version) < floatval(13)); /var/www/html/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client/RequestCreator/Converter/Fare/PricePNRWithBookingClassConv.php:44:
array (size=2)
'version' => string '14.1' (length=4)
'wsdl' => string 'dc22e4ee' (length=8)
/var/www/html/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client/RequestCreator/Converter/Fare/PricePNRWithBookingClassConv.php:45:boolean true |
Wait, are you getting an array as |
Ok, that sounds like a dumb mistake on my part :) |
Yes :( Changing it to |
Ok, It'll be fixed tonight, but it'll require some work on the unittests. Hang in there - and thanks for finding this bug! |
Thanks for help. I am in no hurry as I just patched it directly in container so I can work with this patch for now. |
This should be fixed now. Please test! :) |
Works ❤️ Thanks! |
Hey, I just updated the lib to newest
master
and when doing pricing I am gettingMy code:
And error:
I have 14.1 version of this endpoint but I see lib is using version 12?
Any ideas what is wrong? I tried to look in the code but did not find anything that can cause this issue.
The text was updated successfully, but these errors were encountered: