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

Travelport - Special service request #32

Open ratheepan opened 8 years ago

ratheepan commented 8 years ago

Hello Vivek,

i have some requirements to do with air reservation

1 meal request and

2 special service request (eg wheel chair , oxygen cylinder)

Is it possible to send above request with AirCreateReservationReq? or could you please send me some sample request format?

can i have sample request for FlightTimeTableReq'' to get First intermediate stop, Last intermediate and technical stop detailsstop?

For get NumberofStop information i am using following request. request

<soapenv:Envelope xmlns:com="http://www.travelport.com/schema/common_v33_0"          xmlns:air="http://www.travelport.com/schema/air_v33_0" 
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soapenv:Header/>
<soapenv:Body>
<air:FlightInformationReq xmlns="http://www.travelport.com/schema/common_v33_0" AuthorizedBy="user" TargetBranch="P7040885" TraceId="trace">
        <com:BillingPointOfSaleInfo OriginApplication="String" />
        <air:FlightInfoCriteria Key="HgrfU9aDRv25t+8D04g7Eg==" xmlns="http://www.travelport.com/schema/common_v33_0" Carrier="TK" FlightNumber="731" DepartureDate="2016-02-26" />
        </air:FlightInformationReq> 
        </soapenv:Body>
        </soapenv:Envelope>

i am getting following error Universal API/uAPI9422509294-4f737f4adW}52=eYSkError 404: SRVE0295E: Error reported: 404

is Anything missing with this request or permission problems??

Thanks in Advance

vivekjyotipramanik commented 8 years ago

Hi ratheepan,

We can book Meals and other optional services (Except Seat ) while creating a booking using AirCreateReservationReq. Please find below the link with the details and samples.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Standalone_Merchandising/Air_Merchandising_Process_Flow.htm%3FTocPath%3DAir%7CAir%2520Merchandising%7C_____1

https://support.travelport.com/webhelp/uapi/Content/SampleWeb/Individual_Sample_Pages/044-ACH_Air_LFS-AC_OptSvce-Meals.htm

The Special Service Request or in uAPI terms , OSI(Other Service Information) can be booked while creating booking also. But OxygenCylinder is not OSI. It is an Optional Service and if the flight provides the Optional Service then only it can be booked. While WheelChair is an OSi and can be booked using the below tag during booking or UniversalRecordModify.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Air_Booking/Create_Air_Booking/Air_Booking_with_OSIs.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7CAir%2520Booking%7CCreating%2520Air%2520Bookings%7CAir%2520Booking%2520Modifiers%7C_____9

<com:OSI Key="?" Carrier="?" Code="?" Text="?" ProviderCode="?"/>

Please find below the sample for FlightTimeTableReq with the all the details requested.

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:air="http://www.travelport.com/schema/air_v33_0" xmlns:com="http://www.travelport.com/schema/common_v33_0">
   <soapenv:Header/>
   <soapenv:Body>
      <air:FlightTimeTableReq TraceId="trace" AuthorizedBy="user" TargetBranch="TargetBranch">
         <com:BillingPointOfSaleInfo OriginApplication="UAPI"/>
         <air:FlightTimeTableCriteria>
            <air:GeneralTimeTable StartDate="2016-02-01" EndDate="2016-03-01" IncludeConnection="true">
               <air:DaysOfOperation Mon="true" Tue="true" Wed="true" Thu="true"/>
               <air:FlightOrigin>
                  <com:Airport Code="DEN"/>
               </air:FlightOrigin>
               <air:FlightDestination>
                  <com:Airport Code="SYD"/>
               </air:FlightDestination>
               <air:CarrierList IncludeCarrier="true">
                  <air:CarrierCode>BA</air:CarrierCode>
               </air:CarrierList>
            </air:GeneralTimeTable>
            <!--<air:SpecificTimeTable StartDate="" Carrier="?" FlightNumber="?">
               <air:FlightOrigin>
                  <com:Airport Code="?"/>
               </air:FlightOrigin>
               <air:FlightDestination>
                  <com:Airport Code="?"/>
               </air:FlightDestination>
            </air:SpecificTimeTable>-->
         </air:FlightTimeTableCriteria>
      </air:FlightTimeTableReq>
   </soapenv:Body>
</soapenv:Envelope>

Response:


<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP:Body>
      <air:FlightTimeTableRsp TraceId="trace" TransactionId="8498BA0B0A047114C742D34208A82A7B" ResponseTime="227" xmlns:air="http://www.travelport.com/schema/air_v33_0">
         <air:FlightTimeTableList>
            <air:FlightTimeDetail Key="PYO9rLiOSQSygBFkPK8MJA==" VendorCode="BA" FlightNumber="218" Origin="DEN" Destination="LHR" DepartureTime="17:50:00-07:00" ArrivalTime="09:35:00+00:00" StopCount="0" Equipment="744" ScheduleStartDate="2016-02-01" ScheduleEndDate="2016-03-01" DisplayOption="true" DayChange="1" JourneyTime="525" FlightTime="525" EndTerminal="3" InsideAvailability="Y" SecureSell="SS">
               <air:DaysOfOperation Mon="true" Wed="true" Thu="true" Fri="true" Sat="true" Sun="true"/>
               <air:Connection/>
            </air:FlightTimeDetail>
            <air:FlightTimeDetail Key="FioXPEdUTfKmYUWpW7uvCw==" VendorCode="BA" FlightNumber="15" Origin="LHR" Destination="SYD" DepartureTime="21:45:00+00:00" ArrivalTime="06:50:00+11:00" StopCount="1" Equipment="777" ScheduleStartDate="2016-02-01" ScheduleEndDate="2016-03-01" DisplayOption="true" DayChange="2" JourneyTime="1325" FlightTime="1325" StartTerminal="5" EndTerminal="1" FirstIntermediateStop="SIN" LastIntermediateStop="SIN" InsideAvailability="Y" SecureSell="SS">
               <air:DaysOfOperation Mon="true" Tue="true" Wed="true" Thu="true" Fri="true" Sat="true" Sun="true"/>
            </air:FlightTimeDetail>
         </air:FlightTimeTableList>
      </air:FlightTimeTableRsp>
   </SOAP:Body>
</SOAP:Envelope>

For the FlightInformationReq, please use the URL endpoint as 'https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/FlightService'

Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

ratheepan commented 8 years ago

Hi Vivek,

Thank you much

FlightInformationReq request and other service reques()OSRt have bone. now i am doing SSR request with with AirCreateReservationReq. i will let you know the progress

Thank you very much for your support.

rajeshtandukar commented 7 years ago

Hi vivekjyotipramanik ,

Beside SSR, how can get information regarding services like Free Meal, Number of available seats in with LowFareSerach Request.

Regards, Rajesh

vivekjyotipramanik commented 7 years ago

Hi rajeshtandukar,

The details if a particular AirSegment offers meals, seats etc and the number of seats, we can run the AirMerchandisingofferAvailability and Seatmapreq. Please find below the link with the complete flow samples. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#SampleWeb/Alternative_Sample_Pages/Samples_Merchandising_Redone.htm%3FTocPath%3DSamples%7CXML%2520Samples%2520%7CAir%2520Samples%7CAir%2520Workflows%7CFunctionalities%7CAir%2520Merchandising%2520(Optional%2520Services)%7C_____0

rajeshtandukar commented 7 years ago

Hi rajeshtandukar, i run AirMerchandisingofferAvailability request but get error. Below are my request and response xml. <?xml version="1.0"?>

ARRIVES DEL TERMINAL 3 PreReservedSeatAssignment Response 400 TPGateway - Request data not found - Request ignored - service name = AirService username = Universal API/uAPI1097517480- ...... TPGateway - Request data not found - Request ignored - service name = AirService username = Universal API/uAPI1097517480- .... Regards, Rajesh
vivekjyotipramanik commented 7 years ago

Hi rajeshtandukar,

Could you please check the below sample request and update your xml request as the below. Also, Could you please confirm the endpoint URL you are using. The above error, looks like coming from incorrect use of endpoint URL. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/008-06_1G_AirMerch_SeatMap_Rq.xml