-
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
"Encoding: object has no 'SessionId' property" on "commandCryptic" #16
Comments
Hi, This is indeed a bug in the Soap Header 2 implementation. Luckily, i've just received a pull request to fix this bug in #15 which I've merged a few minutes ago on the develop branch. Can you please run |
Hah, we are in one team with @smgladkovskiy but I didn't know that he was trying to fix it 😄 So, current response: Amadeus\Client\Result {#28
+status: "UNKNOWN"
+messages: array:1 [
0 => Amadeus\Client\Result\NotOk {#21
+code: 0
+text: "Response handling not supported for cryptic entries"
+level: null
}
]
+response: {#15
+"longTextString": {#25
+"textStringDetails": """
/$DAC LON \n
A:APT B:BUS C:CITY G:GRD H:HELI O:OFF-PT R:RAIL S:ASSOC TOWN \n
CITY : \n
LON C LONDON /GB:UNITED KINGDOM \n
AIRPORT-HELIPORT : \n
BQH A BIGGIN HILL /GB - 0K \n
LGW A GATWICK /GB - 0K \n
LHR A HEATHROW /GB - 0K \n
LCY A LONDON CITY APT /GB - 0K \n
LTN A LUTON /GB - 0K \n
SEN A SOUTHEND /GB - 0K \n
STN A STANSTED /GB - 0K \n
RAIL-BUS STATION : \n
XQE R EBBSFLEET INTL RAIL ST /GB - 0K \n
QQU R EUSTON RAILWAY STN /GB - 0K \n
QQK R KINGS CROSS RAIL STN /GB - 0K \n
ZLS R LIVERPOOL STREET /GB - 0K \n
QQP R PADDINGTON RAILWAY STN /GB - 0K \n
QQS R ST PANCRAS INTL RAILST /GB - 0K \n
XOF R STRATFORD INTL RAIL ST /GB - 0K \n
ZEP R VICTORIA RAILWAY STN /GB - 0K \n
QQW R WATERLOO RAILWAY STN /GB - 0K \n
"""
}
}
+responseXml: """
<Command_CrypticReply xmlns="http://xml.amadeus.com/HSFRES_07_3_1A"><longTextString><textStringDetails>/$DAC LON \n
A:APT B:BUS C:CITY G:GRD H:HELI O:OFF-PT R:RAIL S:ASSOC TOWN \n
CITY : \n
LON C LONDON /GB:UNITED KINGDOM \n
AIRPORT-HELIPORT : \n
BQH A BIGGIN HILL /GB - 0K \n
LGW A GATWICK /GB - 0K \n
LHR A HEATHROW /GB - 0K \n
LCY A LONDON CITY APT /GB - 0K \n
LTN A LUTON /GB - 0K \n
SEN A SOUTHEND /GB - 0K \n
STN A STANSTED /GB - 0K \n
RAIL-BUS STATION : \n
XQE R EBBSFLEET INTL RAIL ST /GB - 0K \n
QQU R EUSTON RAILWAY STN /GB - 0K \n
QQK R KINGS CROSS RAIL STN /GB - 0K \n
ZLS R LIVERPOOL STREET /GB - 0K \n
QQP R PADDINGTON RAILWAY STN /GB - 0K \n
QQS R ST PANCRAS INTL RAILST /GB - 0K \n
XOF R STRATFORD INTL RAIL ST /GB - 0K \n
ZEP R VICTORIA RAILWAY STN /GB - 0K \n
QQW R WATERLOO RAILWAY STN /GB - 0K \n
</textStringDetails></longTextString></Command_CrypticReply>
"""
} |
Yes, that is normal behaviour. The library does not check the response of a Command_Cryptic entry for errors, because it's just impossible to do that. If you use Command_Cryptic, you have to check for errors in your own application. |
Thank you, for fast reply! |
…AN-468-service.amadeus-search-add-validating to master * commit '02b3a7af4fa52b8fdaa3e00397cb921a9f84bd2d': VAN-468 service.amadeus / search / add validating carrier to output
Output of
php -v
:Output of
cat /etc/*release*
:Environment details:
Docker container (Dockerfile)
composer.json
index.php
Steps to reproduce the issue:
composer install
php index.php
Results i have received:
The text was updated successfully, but these errors were encountered: