Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

Need help #39

Open naveedjasim opened 8 years ago

naveedjasim commented 8 years ago

Hi

hope you are doing good. I am working on site which need to integrate flight and hotel booking. Can you please guide me how I will be able to integrate these facilities on my site? below are the credentials which I received but I am getting an error message "User account is locked".

please also guide me which API Should I have to use for flight and hotel booking?

vivekjyotipramanik commented 8 years ago

Hi Jad,

We have checked the account is unlocked. Could you please provide the details about the issues you are facing. Thanks.

Thanks & Regards Vivekjyoti Pramanik

jadchahine commented 8 years ago

Hi Vivekjyoti

Ok thank you very much, no problem I am using now other credentials, so it is fine.

Thanks & Regards

blaybel commented 8 years ago

Hi Vivekjyoti I have tried all the lessons mentioned in the project I am mainly interested in the booking issues provided by travelport and I notice that Lesson4 and Lesson5 talk about Hotel Booking Can you provide me a simple lesson talking about Air Flight Booking?

Thanks&Regards

vivekjyotipramanik commented 8 years ago

Hi Blaybel,

Could you please confirm when you talked about Air Flight booking, did you mean code wise or the flow. Please find below the link with all the details related to Air Flight booking. Please let me know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Air_Booking/Air_Booking.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7CAir%2520Booking%7C_____0

Thanks & Regards Vivekjyoti Pramanik

blaybel commented 8 years ago

Yes I mean a simple code concerning a Air Flight booking.

Thanks & Regards

vivekjyotipramanik commented 8 years ago

Hi Blaybel,

We have sample available of Air Booking for c#. We dont have any sample readily available for Java for Air booking. Please wait until next week and we can provide a sample of Air Booking in Java. Thanks.

Thanks & Regards Vivekjyoti Pramanik

blaybel commented 8 years ago

Ok I will be waiting for you.

Thanks & Regards

sanjaysrswt commented 7 years ago

Hi Friends, I am new to using Galileo UniversalAPI. i know only that web service call by URL connection where we need to pass end point url and SOAP Action and authorization if required and got response.

But for Galileo UNiversal API how we can use Universal API for Air service in Java. it will be greatfull if you can send me sample java code for getting response of a request.

vivekjyotipramanik commented 7 years ago

Hi sanjaysrswt,

We have a very comprehensive Java tutorial about Universal API. please find below the link. Please let us know how it goes. Thanks.

https://github.com/Travelport/travelport-uapi-tutorial/tree/master

sanjaysrswt commented 7 years ago

Hi vivek,

Actually i want to run any web service via URL connection. I want to try from SOAP UI Tool also, but can't find a proper WSDL file so i can import this and can see response via this.

by manual payload code i was using like this:

URL url = new URL("https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI"); URLConnection rc = url.openConnection(); int len = XMLReq.length(); rc.setDoOutput(true); rc.setDoInput(true); rc.setRequestProperty("Content-Type", "text/xml; charset=utf-8"); rc.setRequestProperty("Expect", "100-continue"); rc.setRequestProperty("Accept", "application/soap+xml, application/dime, multipart/related, text/*"); rc.setRequestProperty("Content-Length", Integer.toString(len)); String SoapAction = "http://webservices.galileo.com/"; rc.setRequestProperty("SOAPAction", SoapAction); BASE64Encoder b64 = new BASE64Encoder(); rc.setRequestProperty("Content-Length", "" + len); String auth = b64.encode(userPass.getBytes()); rc.setRequestProperty("Authorization", "Basic " + auth); rc.setRequestProperty("Accept-Encoding", "gzip"); rc.connect();

Please help as i was previously using Galileo services like this only.. Thanks!

vivekjyotipramanik commented 7 years ago

Hi sanjaysrswt,

The wsdl can be downloaded from the below link. You code is fine but it is using a incorrect URL and SOAPAction. Please find below the help link as well. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm

https://support.travelport.com/webhelp/uapi/Content/Resources/uAPI_WSDLschema_Release-V17.3.0.35.zip

sanjaysrswt commented 7 years ago

Hi vivekjyotipramanik,

As i seen in wsdl soap action like: , but is this correct to use as localhost written in this.

As per document shared EMEA (Europe, Middle East, Africa) I am using endpoint url: https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/Service

is this correct?

vivekjyotipramanik commented 7 years ago

Hi sanjaysrswt,

The URL actually might change or the Service part of the URL will change based on the service you are running. So, if we run Air LowfareSearch or availability, we need to the change the service to https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService. If we are running Hotel related service, we need to change it to https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/HotelService. The SOAPAction is fine and yes the localhost can be used. Please let us know how it goes. Thanks.

tiimka commented 7 years ago

Hi vivekjyotipramanik,

We are very happy to use TravelPort Universal API, We received the credentials and updated to the file phpSample_Air.php but is not working its showing an error , Changed the date to future date and also the endpoint of the URL to UtilService Processing! Please wait! Fatal error: Error occurred request/response processing! in D:\xampp\htdocs\Air\phpSample_Air.php on line 100

Please find bellow the code in the file , hope will help us. <?php /*

sanjaysrswt commented 7 years ago

Hi vivekjyotipramanik, Thanks for helping me and it's great... Now i am stuck on some request like AirPrice, AirFareRulesReq etc.. in these i require and .. Please help that from where i can get these values..

Thanks!

vivekjyotipramanik commented 7 years ago

Hi tiimka,

I believe the URL endpoint you are using is incorrect. Looks like you are using https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/UtilService for AirAvailability. Could you please change it to https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService. Please let us know how it goes. Also, Please create a separate issue for new questions. Thanks.

vivekjyotipramanik commented 7 years ago

Hi sanjaysrswt,

Please find below the link with all the details about session. I believe the session is only valid for SharedBooking. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Sessions/Introduction_to_Sessioning.htm%3FTocPath%3DSessions%7C_____0

sanjaysrswt commented 7 years ago

Hi vivekjyotipramanik, sorry i could not find any thing helpfull regarding AirPrice. I require to fare reconfirm for a particular flight, and wants to check upgrade fare(Search for Economy and require to upgrade Business) for that flight then which service i need to call. Please guide..

vivekjyotipramanik commented 7 years ago

Hi sanjaysrswt,

Could you please create an ORS ticket and an API Analyst will assist you with this query. Please let us know how it goes. Thanks.