Comments (6)
Ok, I found what went wrong with your security authenticate: there is an error in the documentation in the authentication parameters. I'm going to fix it now...
from amadeus-ws-client.
So the problem was that the Security_Authenticate
message uses authentication params defined at the Amadeus\Client\Params::$authParams
level, but the documentation shows that authentication should be provided at Amadeus\Client\Params\SessionHandlerParams::$authParams
level.
Doing so resulted in empty authentication parameters in the Client, which resulted in a Security_Authenticate with empty parameters. This is what you experienced.
I've now fixed:
- the documentation to set the auth params at the correct level
- the loading of params so that it doesn't matter at which level you define authentication parameters, both will work.
from amadeus-ws-client.
I had forgotten the $client->securityAuthenticate()
But when I did the request is empty.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://xml.amadeus.com/VLSSLQ_06_1_1A">
<SOAP-ENV:Body>
<ns1:Security_Authenticate>
<ns1:userIdentifier>
<ns1:originIdentification>
<ns1:sourceOffice/>
</ns1:originIdentification>
<ns1:originatorTypeCode/>
<ns1:originator/>
</ns1:userIdentifier>
<ns1:dutyCode>
<ns1:dutyCodeDetails>
<ns1:referenceQualifier>DUT</ns1:referenceQualifier>
<ns1:referenceIdentifier/>
</ns1:dutyCodeDetails>
</ns1:dutyCode>
<ns1:systemDetails>
<ns1:organizationDetails>
<ns1:organizationId/>
</ns1:organizationDetails>
</ns1:systemDetails>
<ns1:passwordInfo>
<ns1:dataLength/>
<ns1:dataType>E</ns1:dataType>
<ns1:binaryData/>
</ns1:passwordInfo>
</ns1:Security_Authenticate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns="http://webservices.amadeus.com/definitions">
<SessionId>015S216GJ3|1</SessionId>
</soap:Header>
<soap:Body>
<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>soap:Client</faultcode>
<faultstring>18|Presentation|Fusion DSC found an exception !\n
\tMissing Mandatory tag :\n
\tExpected element: userIdentifier\n
\tCurrent position in buffer: <ns1:dutyCode><ns1:dutyCodeDet\n
\tLast 15 characters before error: y_Authenticate>
</faultstring>
<faultactor>SI:APA</faultactor>
</soap:Fault>
</soap:Body>
</soap:Envelope>
from amadeus-ws-client.
Hi,
The thing that's going wrong is you provide an Array to the Amadeus\Client\Params::$authParams
, while it should be an instance of Amadeus\Client\Params\AuthParams
.
The result is that the Authentication parameters are not picked up properly. That's why you're sending an empty Security_Authenticate
.
I realize that this is not very intuitive, and in the future I'd like to be able to provide one big nested Array for Client instantiation, but that's work in progress.
Please let me know if that fixes your problem.
from amadeus-ws-client.
Now works great. :)
from amadeus-ws-client.
Thanks for your help.
from amadeus-ws-client.
Related Issues (20)
- PNR_DisplayHistory for vendor locator history
- Missing mandatory item HOT 1
- How can I make requests to be stateful? HOT 2
- 11 | Session HOT 5
- Air_MultiAvailability excluded connections question HOT 3
- ADD CONTACT IN SSR CTCM CTCE HOT 1
- Ticket_IgnoreRefund
- Ticket_IgnoreRefund : DOMDocument::loadXML() Empty string supplied as input HOT 2
- How to add Passengers Title
- Create Form of payment after PNR_AddMultiElements
- Ticket_RebookAndRepricePNR
- Booking seat for stops [PNR_AddMultiElements].
- psr/log version conflict with Laravel 10 HOT 2
- 11|Session - Hosting based restrictions HOT 1
- Ticket_CreateTSTFromPricing not group TST by type passenger
- airRetrieveSeatMap error processingLevel 1
- How to add Tax Info in MPTB request HOT 1
- Help for startup
- Processing ERROR for Rail PNR in Amadeus
- PNR status issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amadeus-ws-client.