Skip to content
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

Getting Session Array Blank #85

Closed
JustBeDigital opened this issue Jul 21, 2017 · 28 comments
Closed

Getting Session Array Blank #85

JustBeDigital opened this issue Jul 21, 2017 · 28 comments
Labels

Comments

@JustBeDigital
Copy link

Hello,

I am trying to test the FareMasterPricerTbSearch then i am getting Fault Status with host could not reach. I also try to print the Client response but in this case their is no value coming in sessionId, sequenceNumber, securityToken while when i test through https://webservices.amadeus.com then i get the sessions details. For more please find the below code:

$params = new Params([
'authParams' => [
'officeId' => 'XXX', //Office Id
'userId' => 'XXX', //UserId
'passwordData' =>'XXX', // base 64 encoded password
'passwordLength' => 8,
'dutyCode' => 'XX', // duty code
'organizationId' => 'XX', //Organization Id
],
'sessionHandlerParams' => [
'soapHeaderVersion' => Client::HEADER_V2,
'wsdl' => '', //path of the wsdl file
'stateful' => true,
'logger' => new Psr\Log\NullLogger(),
],
'requestCreatorParams' => [
'receivedFrom' => 'My Project'
]
]);
$client = new Client($params);

In the above code when i try to print the $client then i get sessionData array with blank values in sessionId, sequenceNumber, securityToken.

Secondly i want to know how i debug (print) the request in XML format i try to enable the returnXml=true by default but still the same.

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

Hi, sorry for the late response, I'm on holiday.

I see you're using SoapHeader 2. That implementation requires you to manually send an authenticate message before performing any other action. This is the reason for the blank session.

You can use the getLastRequest() and getLastResponse() methods on the client to get the request and response messages raw XML.

@JustBeDigital
Copy link
Author

Hi DerMika,

Thanks for the reply,

I try to print the request and response through getLastRequest() and getLastResponse() but i still get blank in both cases.

And when i try to call fareMasterPricerTravelBoardSearch then the below message coming
[0] => Amadeus\Client\Result\NotOk Object
(
[code] => Could not connect to host
[text] =>
[level] =>
)

Please help me in both cases.

Thanks
JustBeDigital

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

If you can't connect to the server, you won't be sending any messages, so that would explain why you'd get a blank response.

Question is why can't you connect, have you tested if you can reach the Amadeus server endpoint in your WSDL? This is not something I can help you with, sounds like a WSDL issue or a network issue.

@JustBeDigital
Copy link
Author

Hello,
I get could not connect to the server when I try to hit faretravelboardsearch but when I just call new client with passing params then it that case I didn't get sessions.
While I test on webservices.amadeus.com then I receive a session details in response.

@JustBeDigital
Copy link
Author

Hi Dermika,
any update on above request.
I am waiting your kind response.

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Jul 25, 2017

The client just uses connection data present in the WSDL. You will have to check in the WSDL what the endpoint is for this message, and then check your network connection yourself. There is nothing I can do to help you.

Have you tried the securityAuthenticate () method? Does that work? Do you get session data after calling that method? If so, do a MasterPricer message after that and there is no reason it wouldn't work.

@JustBeDigital
Copy link
Author

Hi Der Mika,
please check below mentioned code and point out where we are wrong.
use Amadeus\Client;
use Amadeus\Client\Params;
use Amadeus\Client\SoapClient;
use Amadeus\Client\Result;
use Amadeus\Client\RequestOptions\PnrRetrieveOptions;
use Amadeus\Client\RequestOptions\FareMasterPricerTbSearch;
use Amadeus\Client\RequestOptions\Fare\MPItinerary;
use Amadeus\Client\RequestOptions\Fare\MPLocation;
use Amadeus\Client\RequestOptions\Fare\MPPassenger;
use Amadeus\Client\RequestOptions\Fare\MPDate;
$password=PasswordAmadeus; //get the password from the config
$OfficeID=OfficeIdAmadeus; //get the officeId from config
$username=UsernameAmadeus; //get the username from config
date_default_timezone_set("UTC");
$t = microtime(true);
$micro = sprintf("%03d",($t - floor($t)) * 1000);
$date = new DateTime( date('Y-m-d H:i:s.'.$micro) );
$timestamp = $date->format("Y-m-d\TH:i:s:").$micro . 'Z';
//$encodedNonce = base64_encode($nonce);
$nonce=base64_decode($encodedNonce);
$passSHA = base64_encode(sha1($nonce . $timestamp . sha1($password, true), true));

 $params = new Params([
    'authParams' => [
        'officeId' => $OfficeID, //The Amadeus Office Id you want to sign in to - must be open on your WSAP.
        'userId' => $username, //Also known as 'Originator' for Soap Header 1 & 2 WSDL's
        'passwordData' => $passSHA, // **base 64 encoded** password
		
		
    ],
    'sessionHandlerParams' => [
        'soapHeaderVersion' => Client::HEADER_V4, //This is the default value, can be omitted.
        'wsdl' => URL.'Amadeus_wsdl_lib/1ASIWSMLLVN_PDT_20170724_131430.wsdl', //Points to the location of the WSDL file for your WSAP. Make sure the associated XSD's are also available.
        'stateful' => false, //Enable stateful messages by default - can be changed at will to switch between stateless & stateful.
        'logger' => new Psr\Log\NullLogger()
    ],
    'requestCreatorParams' => [
        'receivedFrom' => 'smartlinetravels project' // The "Received From" string that will be visible in PNR History
    ],
	'returnXml' => true
]);  


//print_r($params); die;
 $client = new Client($params); 

/* echo "<textarea>";
print_r($client->getLastRequest()); 
echo "</textarea>"; 
die; */
echo "<pre>";
print_r($client->securityAuthenticate());die; 

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Jul 25, 2017

You do not need to perform all these operations on the password. The client needs the base_64 encoded version of the plain text password and it will do all the sha1 operations to pass the correct password.

@JustBeDigital
Copy link
Author

JustBeDigital commented Jul 25, 2017

Hi Der Mika,
I have done as per your guideline but still same.
please check below mentioned code.
I am waiting your kind response.

use Amadeus\Client;
use Amadeus\Client\Params;
use Amadeus\Client\SoapClient;
use Amadeus\Client\Result;
use Amadeus\Client\RequestOptions\PnrRetrieveOptions;
use Amadeus\Client\RequestOptions\FareMasterPricerTbSearch;
use Amadeus\Client\RequestOptions\Fare\MPItinerary;
use Amadeus\Client\RequestOptions\Fare\MPLocation;
use Amadeus\Client\RequestOptions\Fare\MPPassenger;
use Amadeus\Client\RequestOptions\Fare\MPDate;

$password=PasswordAmadeus; //get the password from the config
$OfficeID=OfficeIdAmadeus; //get the officeId from config
$username=UsernameAmadeus; //get the username from config

 $params = new Params([
    'authParams' => [
        'officeId' => $OfficeID, //The Amadeus Office Id you want to sign in to - must be open on your WSAP.
        'userId' => $username, //Also known as 'Originator' for Soap Header 1 & 2 WSDL's
        'passwordData' => base64_encode($password), // **base 64 encoded** password
		
		
    ],
    'sessionHandlerParams' => [
        'soapHeaderVersion' => Client::HEADER_V4, //This is the default value, can be omitted.
        'wsdl' => URL.'Amadeus_wsdl_lib/1ASIWSMLLVN_PDT_20170724_131430.wsdl', //Points to the location of the WSDL file for your WSAP. Make sure the associated XSD's are also available.
        'stateful' => false, //Enable stateful messages by default - can be changed at will to switch between stateless & stateful.
        'logger' => new Psr\Log\NullLogger()
    ],
    'requestCreatorParams' => [
        'receivedFrom' => 'smartlinetravels project' // The "Received From" string that will be visible in PNR History
    ],
	'returnXml' => true
]);  


 $client = new Client($params); 

echo "<pre>";
print_r($client->securityAuthenticate());die; 

Regards,
-Kunwar Ali

@JustBeDigital
Copy link
Author

JustBeDigital commented Jul 25, 2017

Hi Der Mika,
below is the response of above code.
please check it.

Amadeus\Client Object
(
[lastMessage:protected] =>
[sessionHandler:protected] => Amadeus\Client\Session\Handler\SoapHeader4 Object
(
[isStateful:protected] =>
[hasContext:protected] =>
[context:protected] =>
[sessionData:protected] => Array
(
[sessionId] =>
[sequenceNumber] =>
[securityToken] =>
)

        [isAuthenticated:protected] => 
        [soapClients:protected] => Array
            (
            )

        [soapClientOptions:protected] => Array
            (
                [trace] => 1
                [exceptions] => 1
                [soap_version] => 1
            )

        [params:protected] => Amadeus\Client\Params\SessionHandlerParams Object
            (
                [wsdl] => Array
                    (
                        [0] => http://10.10.10.92/smartlinetravels/Amadeus_wsdl_lib/1ASIWSMLLVN_PDT_20170724_131430.wsdl
                    )

                [soapHeaderVersion] => 4
                [authParams] => Amadeus\Client\Params\AuthParams Object
                    (
                        [officeId] => xxxxx
                        [originatorTypeCode] => U
                        [dutyCode] => SU
                        [userId] => xxxx
                        [organizationId] => 
                        [passwordLength] => 
                        [passwordData] => **************
                        [nonceBase] => qxMbO0P8VsLPYhcbWitKkvC
                    )

                [stateful] => 
                [logger] => Psr\Log\NullLogger Object
                    (
                    )

                [soapClientOptions] => Array
                    (
                    )

                [overrideSoapClient] => 
                [overrideSoapClientWsdlName] => 
            )

        [messagesAndVersions:protected] => Array
            (
                [Air_RebookAirSegment] => Array
                    (
                        [version] => 14.1
                        [wsdl] => b550adae
                    )

                [Air_SellFromRecommendation] => Array
                    (
                        [version] => 5.2
                        [wsdl] => b550adae
                    )

                [Command_Cryptic] => Array
                    (
                        [version] => 7.3
                        [wsdl] => b550adae
                    )

                [DocIssuance_IssueTicket] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [FOP_CreateFormOfPayment] => Array
                    (
                        [version] => 15.4
                        [wsdl] => b550adae
                    )

                [Fare_InformativeBestPricingWithoutPNR] => Array
                    (
                        [version] => 14.1
                        [wsdl] => b550adae
                    )

                [Fare_MasterPricerTravelBoardSearch] => Array
                    (
                        [version] => 14.3
                        [wsdl] => b550adae
                    )

                [Fare_PricePNRWithBookingClass] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [Fare_PricePNRWithLowerFares] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [PNR_AddFrequentFlyer] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

                [PNR_AddMultiElements] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [PNR_Retrieve] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [Security_Authenticate] => Array
                    (
                        [version] => 6.1
                        [wsdl] => b550adae
                    )

                [Security_SignOut] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

                [Ticket_CreateTSTFromPricing] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

                [Ticket_DeleteTST] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

            )

        [logger:protected] => Psr\Log\NullLogger Object
            (
            )

    )

[requestCreator:protected] => Amadeus\Client\RequestCreator\Base Object
    (
        [params:protected] => Amadeus\Client\Params\RequestCreatorParams Object
            (
                [originatorOfficeId] => xxxx
                [receivedFrom] => smartlinetravels project Supportmart Amadeus-1.5.0-dev
                [messagesAndVersions] => Array
                    (
                        [Air_RebookAirSegment] => Array
                            (
                                [version] => 14.1
                                [wsdl] => b550adae
                            )

                        [Air_SellFromRecommendation] => Array
                            (
                                [version] => 5.2
                                [wsdl] => b550adae
                            )

                        [Command_Cryptic] => Array
                            (
                                [version] => 7.3
                                [wsdl] => b550adae
                            )

                        [DocIssuance_IssueTicket] => Array
                            (
                                [version] => 15.1
                                [wsdl] => b550adae
                            )

                        [FOP_CreateFormOfPayment] => Array
                            (
                                [version] => 15.4
                                [wsdl] => b550adae
                            )

                        [Fare_InformativeBestPricingWithoutPNR] => Array
                            (
                                [version] => 14.1
                                [wsdl] => b550adae
                            )

                        [Fare_MasterPricerTravelBoardSearch] => Array
                            (
                                [version] => 14.3
                                [wsdl] => b550adae
                            )

                        [Fare_PricePNRWithBookingClass] => Array
                            (
                                [version] => 15.1
                                [wsdl] => b550adae
                            )

                        [Fare_PricePNRWithLowerFares] => Array
                            (
                                [version] => 15.1
                                [wsdl] => b550adae
                            )

                        [PNR_AddFrequentFlyer] => Array
                            (
                                [version] => 4.1
                                [wsdl] => b550adae
                            )

                        [PNR_AddMultiElements] => Array
                            (
                                [version] => 15.1
                                [wsdl] => b550adae
                            )

                        [PNR_Retrieve] => Array
                            (
                                [version] => 15.1
                                [wsdl] => b550adae
                            )

                        [Security_Authenticate] => Array
                            (
                                [version] => 6.1
                                [wsdl] => b550adae
                            )

                        [Security_SignOut] => Array
                            (
                                [version] => 4.1
                                [wsdl] => b550adae
                            )

                        [Ticket_CreateTSTFromPricing] => Array
                            (
                                [version] => 4.1
                                [wsdl] => b550adae
                            )

                        [Ticket_DeleteTST] => Array
                            (
                                [version] => 4.1
                                [wsdl] => b550adae
                            )

                    )

            )

        [messagesAndVersions:protected] => Array
            (
                [Air_RebookAirSegment] => Array
                    (
                        [version] => 14.1
                        [wsdl] => b550adae
                    )

                [Air_SellFromRecommendation] => Array
                    (
                        [version] => 5.2
                        [wsdl] => b550adae
                    )

                [Command_Cryptic] => Array
                    (
                        [version] => 7.3
                        [wsdl] => b550adae
                    )

                [DocIssuance_IssueTicket] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [FOP_CreateFormOfPayment] => Array
                    (
                        [version] => 15.4
                        [wsdl] => b550adae
                    )

                [Fare_InformativeBestPricingWithoutPNR] => Array
                    (
                        [version] => 14.1
                        [wsdl] => b550adae
                    )

                [Fare_MasterPricerTravelBoardSearch] => Array
                    (
                        [version] => 14.3
                        [wsdl] => b550adae
                    )

                [Fare_PricePNRWithBookingClass] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [Fare_PricePNRWithLowerFares] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [PNR_AddFrequentFlyer] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

                [PNR_AddMultiElements] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [PNR_Retrieve] => Array
                    (
                        [version] => 15.1
                        [wsdl] => b550adae
                    )

                [Security_Authenticate] => Array
                    (
                        [version] => 6.1
                        [wsdl] => b550adae
                    )

                [Security_SignOut] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

                [Ticket_CreateTSTFromPricing] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

                [Ticket_DeleteTST] => Array
                    (
                        [version] => 4.1
                        [wsdl] => b550adae
                    )

            )

        [messageBuilders:protected] => Array
            (
            )

    )

[responseHandler:protected] => Amadeus\Client\ResponseHandler\Base Object
    (
        [responseHandlers:protected] => Array
            (
            )

    )

[authParams:protected] => Amadeus\Client\Params\AuthParams Object
    (
        [officeId] => xxx
        [originatorTypeCode] => U
        [dutyCode] => SU
        [userId] => xxxx
        [organizationId] => 
        [passwordLength] => 
        [passwordData] => *****************
        [nonceBase] => qxMbO0P8sVLPYhcbWitKkvC
    )

[returnResultXml:protected] => 1

)

Regards,
-kunwar Ali

@JustBeDigital
Copy link
Author

Hi Der Mika,

any update on above request.
I am waiting your kind response.

Regards,
-Kunwar Ali

@JustBeDigital
Copy link
Author

Hi Der Mika,

any update on above request.

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 10, 2017

Hi, I'm sorry but I was unavailable for a while.

Have you been able to figure out the problem in the mean time?

some questions that popped up:

  • what is your objective, trying to authenticate?
  • which soapheader version is your WSAP using? You seem to be using SoapHeader 4 which does not require a separate Authenticate message. The library will authenticate you when you send your first message.
  • I see you're using the dev-master version, I suggest you use a released version (install as composer dependency as explained in the docs).
  • please do not post your password to the entire world ;) (I've edited it out)

@JustBeDigital
Copy link
Author

JustBeDigital commented Aug 15, 2017

Hi DerMika ,

Thanks for update.
can you please provide me released version link.
I have download it from https://github.com/amabnl/amadeus-ws-client.
I am waiting your kind response.

-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 15, 2017

Just follow the installation instructions from the readme and you should have the latest version 1.4.0.

@JustBeDigital
Copy link
Author

JustBeDigital commented Aug 16, 2017

Hi DerMika,
I have download amadeus ws client from https://github.com/amabnl/amadeus-ws-client..
I have install composer as per your guidelines.
But I am facing same Issues.
below are the response

Amadeus\Client\Result Object
(
    [status] => FATAL
    [messages] => Array
        (
            [0] => Amadeus\Client\Result\NotOk Object
                (
                    [code] => Could not connect to host
                    [text] => 
                    [level] => 
                )

        )

    [response] => 
    [responseXml] => 
)

Please check the screenshot for directory structure.
eroor
please check the below code for my_try.php file which is red marked in attached screenshot

include_once('vendor/autoload.php');

use Amadeus\Client;
use Amadeus\Client\Params;
use Amadeus\Client\Result;
use Amadeus\Client\RequestOptions\FareMasterPricerTbSearch;
use Amadeus\Client\RequestOptions\Fare\MPItinerary;
use Amadeus\Client\RequestOptions\Fare\MPLocation;
 use Amadeus\Client\RequestOptions\Fare\MPPassenger;
use Amadeus\Client\RequestOptions\Fare\MPDate;
//Set up the client with necessary parameters:

$params = new Params([
    'authParams' => [
        'officeId' => 'xxxxx', //The Amadeus Office Id you want to sign in to - must be open on your WSAP.
        'userId' => 'xxxx', //Also known as 'Originator' for Soap Header 1 & 2 WSDL's
        'passwordData' => base64_encode('yyyyy') // **base 64 encoded** password
    ],
    'sessionHandlerParams' => [
        'soapHeaderVersion' => Client::HEADER_V4, //This is the default value, can be omitted.
        'wsdl' => 'Amadeus_wsdl_lib/1ASIWSMLLVN_PDT_20170724_131430.wsdl', //Points to the location of the WSDL file for your WSAP. Make sure the associated XSD's are also available.
        'stateful' => false, //Enable stateful messages by default - can be changed at will to switch between stateless & stateful.
        'logger' => new Psr\Log\NullLogger()
		//'logger' => new vendor\psr\log\Psr\Log\NullLogger()
    ],
    'requestCreatorParams' => [
        'receivedFrom' => 'my test project' // The "Received From" string that will be visible in PNR History
    ]
]);

$client = new Client($params);
//echo "<pre>"; print_r($client); echo "</pre>";
//start code for travelboardsearch
	$opt = new FareMasterPricerTbSearch([
        'nrOfRequestedResults' => 30, //no of result get from the response
        'nrOfRequestedPassengers' => 2, //total no of passengers i.e., adults+childs+infants
        'passengers' => [				//passengers details array
            new MPPassenger([
                'type' => MPPassenger::TYPE_ADULT,
                'count' => 1
            ]),
            new MPPassenger([
                'type' => MPPassenger::TYPE_CHILD,
                'count' => 1
            ]),
        ],
        'itinerary' => [
            new MPItinerary([
                'departureLocation' => new MPLocation(['city' => 'DEL']), //from departure location
                'arrivalLocation' => new MPLocation(['city' => 'BOM']),   //to arrivalLocation
                'date' => new MPDate([
                    'dateTime' => new \DateTime('2017-08-28T10:00:00+0000', new \DateTimeZone('UTC')), //departure date
                    'timeWindow' => 5,
                    'rangeMode' => MPDate::RANGEMODE_MINUS_PLUS,
                    'range' => 1
                ])
            ]),
            ]
    ]);
	$Fare_TravelBoardSearch=$client->fareMasterPricerTravelBoardSearch(
		$opt
	);

	echo "<textarea>";print_r($Fare_TravelBoardSearch); echo "</textarea>";die;
    
	die;

Please check my request and give your valuable suggestion.

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 17, 2017

Could not connect to host is an error from a lower level and indicates a network problem. Have you tried if you're able to ping or otherwise reach the SOAP server mentioned in the WSDL?

This seems like the same error you've had before. I really suggest you check out your network connectivity to the Amadeus WS server and try to fix this problem together with Amadeus Support.

I can't help you with that I'm afraid.

@JustBeDigital
Copy link
Author

JustBeDigital commented Aug 17, 2017

Hi DerMika,

I have download "aunch Amadeus pinger" from https://webservices.amadeus.com/extranet/spinger.do
and run it in our network PC.
please check screen shot
screenshot 2017-08-17 21 29 27

after it I have check at our server.
please check the screenshot
screenshot 2017-08-17 21 33 00

I am waiting your valuable feedback.

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 17, 2017

I can't help you with that. You need to take this up with Amadeus.

@JustBeDigital
Copy link
Author

JustBeDigital commented Aug 17, 2017

Hi DerMika,
our details are working fine in our core php code.
authetication,request and response are coming well in our core php code with these details.
But I want to use your amadeus-ws-client.
Because amadeus-ws-client is the best and structured solution.
can you please help me.
please check request and response which are coming with our core php code.

AirFlight_Fare_MasterTBSearchReq.txt
AirFlight_Fare_MasterTBSearchRes.txt

Also You may check our core php project from below mentioned url
http://t2.smartlinetravels.co.uk

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 17, 2017

Ok, upon reviewing your sample code, there's one more thing I can think of. Try making the location to the WSDL file an absolute path.

For example, in Symfony you can make a path from the root of the application using code like this:

'wsdl' => realpath(
    $this->get('kernel')->getRootDir() .
    DIRECTORY_SEPARATOR . "wsdl" . DIRECTORY_SEPARATOR . '1ASIWSMLLVN_PDT_20170724_131430.wsdl'
 );

At least that's how I do it in my code.

@JustBeDigital
Copy link
Author

Hi DerMika,
There is not WSDL File missing problem.
if WDL file is not found.
it gives error like below mentioned.
"Fatal error: Uncaught exception 'Amadeus\Client\InvalidMessageException' with message 'Message "Fare_MasterPricerTravelBoardSearch" is not in WDSL' in /opt/lampp/htdocs/amadeus-ws-client-master/src/Amadeus/Client/RequestCreator/Base.php:108 Stack trace: #0 /opt/lampp/htdocs/amadeus-ws-client-master/src/Amadeus/Client/RequestCreator/Base.php(88): Amadeus\Client\RequestCreator\Base->checkMessageIsInWsdl('Fare_MasterPric...') #1 /opt/lampp/htdocs/amadeus-ws-client-master/src/Amadeus/Client.php(1137): Amadeus\Client\RequestCreator\Base->createRequest('Fare_MasterPric...', Object(Amadeus\Client\RequestOptions\FareMasterPricerTbSearch)) #2 /opt/lampp/htdocs/amadeus-ws-client-master/src/Amadeus/Client.php(476): Amadeus\Client->callMessage('Fare_MasterPric...', Object(Amadeus\Client\RequestOptions\FareMasterPricerTbSearch), Array) #3 /opt/lampp/htdocs/amadeus-ws-client-master/my_try.php(82): Amadeus\Client->fareMasterPricerTravelBoardSearch(Object(Amadeus\Client\RequestOptions\FareMasterPricerTbSearch)) #4 {main} thrown in /opt/lampp/htdocs/amadeus-ws-client-master/src/Amadeus/Client/RequestCreator/Base.php on line 108"

it is giving response.
please check attached file and start reading from
[messagesAndVersions:protected] => Array
(
[Air_RebookAirSegment] => Array
(
[version] => 14.1
[wsdl] => e5096fb9
)

                [Air_SellFromRecommendation] => Array
                    (
                        [version] => 5.2
                        [wsdl] => e5096fb9
                    )

because all above values are coming from my WSDL.
Response.txt

please help us on this so that we can take profit from amadeus-ws-client.
I have search alot on internet but not found such excellent and structured library for amadeus like amadeus-ws-client.

Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 18, 2017

Yes, good point.

The only thing left that I can do is try to reproduce the problem. For that you'd need to send me the WSDL and auth details privately.

@JustBeDigital
Copy link
Author

JustBeDigital commented Aug 18, 2017

Hi DerMika
Thanks you so much for your Great support.
I have send please check your inbox.
I am waiting for your valuable feedback.
Regards,
-Kunwar Ali

@DerMika
Copy link
Collaborator

DerMika commented Aug 19, 2017

I just checked your mail, and as I replied, the script you provided me works just fine.

I get a proper Fare_MasterPricerTravelBoardSearchReply as I would expect.

As I explained to you, either it's a network problem or there is some kind of problem with the SSL handshake. Please check if you can upgrade your PHP installation and/or your OpenSSL.

@DerMika
Copy link
Collaborator

DerMika commented Aug 25, 2017

Do you have a status update? Did you manage to fix the problem?

@DerMika
Copy link
Collaborator

DerMika commented Sep 1, 2017

Closing due to no feedback. Re-open if necessary!

@DerMika DerMika closed this as completed Sep 1, 2017
@DerMika
Copy link
Collaborator

DerMika commented Jul 4, 2018

Which issue exactly? Many issues have been mentioned in this thread ;)

atomy pushed a commit to mlamm/amadeus-ws-client that referenced this issue Nov 26, 2018
…tinRead to master

* commit '8d19f0fb493912640f7c0474835ab174c29962b0':
  - refactoring, simplexml extension constraint in composer.json
  ItinRead - fix error by pricing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants