amabnl / amadeus-ws-client

PHP Amadeus SOAP Web Service client library
Apache License 2.0
183 stars 191 forks source link

How to maintain the session throughout all the api calls #391

Closed singhanil221 closed 4 years ago

singhanil221 commented 4 years ago

I am using this api for Amadeus soap air apis, but I have to generate the session everytime which occurs the error, I did not find how I can manage the session throughout all the apis calls.

DerMika commented 4 years ago
  1. use a stateful session : https://github.com/amabnl/amadeus-ws-client/blob/master/docs/how-to.rst#switching-between-stateful-stateless-messages-soap-header-4

  2. persist and restore the session between messages to the API: https://github.com/amabnl/amadeus-ws-client/blob/f27ddbc91e1e23d7f7cc8647d55dfedbb6eeb3ba/docs/how-to.rst#handling-sessions-with-soap-header-2