Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

SOAP Test Request and Respond #22

Open minamisak opened 8 years ago

minamisak commented 8 years ago

Hello

Can anyone provide any code for testing the ticket booking service and how to get the data from the PHP code to the XML part and where to locate the respond. any demonstration regarding this will be helpful.

Regards

minamisak commented 8 years ago

hi Vivekjyoti Pramanik

i received the invitation and accept it right now. thanks for your concern waiting for your meeting

Best regards Mina Misak

minamisak commented 8 years ago

hi Vivekjyoti Pramanik

did you schedule the meeting on WebEx cause i didn't receive any notification yet whenever you did notify me as soon as possible

Thanks and Regards

vivekjyotipramanik commented 8 years ago

Hi minamisak,

I have updated the meeting invitation with all the details. Please check and confirm. Thanks.

Thanks & Regards Vivekjyoti Pramanik

minamisak commented 8 years ago

HI Vivekjyoti Pramanik

I did not receive any invitation on Webex web site however i know it might be late for you now to replay but i am up for the meeting from now till 4:00 PM the meeting time so if you have any replay now it's fine if not before the meeting time just send me to know whats wrong and to know why i did not receive the invitation

Thanks and Regards Mina Misak

minamisak commented 7 years ago

HI Vivekjyoti Pramanik

To be accurate again with my all contact info my mail : mina.m.misak@gmail.com name on Webex : mina misak

for any further info please contact me to be able to start the meeting on time

Thanks and Regards Mina Misak

minamisak commented 7 years ago

HI Vivekjyoti Pramanik

To be accurate again with my all contact info my mail : mina.m.misak@gmail.com account on WebEx : mina misak

for any further info please contact me to be able to start the meeting on time

Thanks and Regards mina misak

On Wed, Sep 21, 2016 at 10:39 AM, mina misak mina.m.misak@gmail.com wrote:

HI Vivekjyoti Pramanik

I did not receive any invitation on Webex web site however i know it might be late for you now to replay but i am up for the meeting from now till 4:00 PM the meeting time so if you have any replay now it's fine if not before the meeting time just send me to know whats wrong and to know why i did not receive the invitation

Thanks and Regards Mina Misak

minamisak commented 7 years ago

HI Vivekjyoti Pramanik

if you see my mail now please contact here to be able to start the meeting on time please

Thanks Mina

On Wed, Sep 21, 2016 at 3:09 PM, mina misak mina.m.misak@gmail.com wrote:

HI Vivekjyoti Pramanik

To be accurate again with my all contact info my mail : mina.m.misak@gmail.com account on WebEx : mina misak

for any further info please contact me to be able to start the meeting on time

Thanks and Regards mina misak

On Wed, Sep 21, 2016 at 10:39 AM, mina misak mina.m.misak@gmail.com wrote:

HI Vivekjyoti Pramanik

I did not receive any invitation on Webex web site however i know it might be late for you now to replay but i am up for the meeting from now till 4:00 PM the meeting time so if you have any replay now it's fine if not before the meeting time just send me to know whats wrong and to know why i did not receive the invitation

Thanks and Regards Mina Misak

vivekjyotipramanik commented 7 years ago

Hi Minmisak,

I am not sure why you are saying you have not received the invitation while I sent the invitation yesterday with all the webex link and call details and which you have already accepted yesterday. How did you confirm and accept the webex invitation if you have not received it. I am really confused. Please check my mails and yesterday and I have added the webex details in the mail. Also, Just to let you know, we don’t share webex details in github. I have already started the webex and waiting for you. Please confirm if you will be joining. Thanks.

Thanks & Regards Vivekjyoti Pramanik

minamisak commented 7 years ago

HI Vivekjyoti Pramanik

hello Dear

i input my name and mail but also i did not connect to the meeting yet could you please review and told me

Thanks Mina Misak

On Wed, Sep 21, 2016 at 4:04 PM, vivekjyotipramanik < notifications@github.com> wrote:

Hi Minmisak,

I am not sure why you are saying you have not received the invitation while I sent the invitation yesterday with all the webex link and call details and which you have already accepted yesterday. How did you confirm and accept the webex invitation if you have not received it. I am really confused. Please check my mails and yesterday and I have added the webex details in the mail. Also, Just to let you know, we don’t share webex details in github. I have already started the webex and waiting for you. Please confirm if you will be joining. Thanks.

Thanks & Regards Vivekjyoti Pramanik

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Travelport/travelport-uapi-tutorial-php/issues/22#issuecomment-248622295, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkGVp9d2HtMjRu3yspkuxs0nA8XTuf4ks5qsTmJgaJpZM4JhZId .

vivekjyotipramanik commented 7 years ago

Hi Minamisak,

Please use the link which I sent you over email and once you open the link, Click on Join meeting. Once clicked it will ask for name and password. Please provide any name and a valid email and it will connect you. Sometimes it might ask for password. Please use the passowrd listed in the meeting invite. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

vivekjyotipramanik commented 7 years ago

Hi Minamisak,

Could you please confirm if you are joining the meeting. We are waiting on the webex. Thanks.

Thanks & Regards Vivekjyoti Pramanik

minamisak commented 7 years ago

hi

could you pleas wait for 5 more minutes

Thanks and Regards Mina misak

On Wed, Sep 21, 2016 at 4:16 PM, vivekjyotipramanik < notifications@github.com> wrote:

Hi Minamisak,

Could you please confirm if you are joining the meeting. We are waiting on the webex. Thanks.

Thanks & Regards Vivekjyoti Pramanik

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Travelport/travelport-uapi-tutorial-php/issues/22#issuecomment-248625728, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkGVtK_1XFtoGP4IU1ZPqvkck9ONGdmks5qsTxYgaJpZM4JhZId .

minamisak commented 7 years ago

hi Vivekjyoti Pramanik

could you please define for me where is the prices part in the php code that respond from the API and how to break it into parts to use it in the AirPriceReq.

Thanks and Regards

Mina Misak

vivekjyotipramanik commented 7 years ago

Hi Minamisak,

We do not have any AirPrice sample in PHP at this moment. But the Praser will work same just like the LFS Parser. We will add the Airprice sample soon in PHP. Thanks.

Thanks & Regards Vivekjyoti Pramanik

minamisak commented 7 years ago

Hi Vivekjyoti Pramanik

For the LFS response code i need the XML file or the containing data (Tags) so please can you provide its link or to show it below in any comment. Note: i do not want that links of the Sample those are provided on the Travelport web site i need the one you construct on the parser of the LFS response that provided in the PHP Tutorial

Thanks and Regards Mina Misak

vivekjyotipramanik commented 7 years ago

Hi minamisak,

I could not understand clearly, Could you please confirm if you are looking for the blank request for AirPrice without any data in it. Thanks.

Thanks & Regards Vivekjyoti Pramanik

minamisak commented 7 years ago

Hello Vivekjyoti Pramanik

first i just register for test pre-production and got the mail with authentication id and password then i tried to start a search for flights without using soap . i took a static request xml from the demo website and add some curl methods for initialize and get the request but i face an error which is "400TPGateway - Request data not found - Request ignored - service name = username = Universal API/uAPI7341562091-18e3a6e9 TPGateway - Request data not found - Request ignored - service name = username = Universal API/uAPI7341562091-18e3a6e9" this error means that my code has error in fetch the user name or my registration went wrong and i had to register again.

here is my code


<?php

$TARGETBRANCH ='P7002716'; $CREDENTIALS = 'Universal API/uAPI7341562091-18e3a6e9:PassowrdHere'; $Provider = '1G';

$msg = <<< EOM <LowFareSearchReq xmlns="http://www.travelport.com/schema/air_v39_0" TraceId="0ff5ddcc-6b76-4b9d-bcdd-1e194b40d9e0" TargetBranch=P7002716 ReturnUpsellFare="true">

' EOM;

$auth = base64_encode($CREDENTIALS); $curl= curl_init("https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/"); $header = array( "Content-Type: text/xml;charset=UTF-8", "Accept: gzip,deflate", "Cache-Control: no-cache", "Pragma: no-cache", "Authorization: Basic $auth", "Content-length: ".strlen($msg), ); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_POST, true ); curl_setopt($curl, CURLOPT_POSTFIELDS, $msg); curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $result=curl_exec($curl); /$info = curl_getinfo($curl); print_r($info); / curl_close($curl); print $result;

?>

note that i set variables static for just testing. the $auth = base64_encode($CREDENTIALS); or to be $auth = base64_encode("$CREDENTIALS");

hope to get replay by today or as soon as possible

Best Regards Mina Misak

vivekjyotipramanik commented 7 years ago

Hi Minamisak,

Looks like the endpoint url you are using is incorrect. Please try with the below URL. If you are using System xml Please replace AirService with SystemService. Please let me know how it goes. Thanks.

https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService

Thanks & Regards Vivekjyoti Pramanik