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

Getting Error in Hotel Booking #352

Open Sapanesh opened 7 years ago

Sapanesh commented 7 years ago

Hi,

When we create booking this error come . Please provide solution for this.

Hotel Create Reservation Response ---->

Server.Application R431 CHECK FORMAT - INVALID CHILD AGES 3100 SYSTEM Application General Failure:(Unmapped error): R431 5B2BCC730A07643BE8D90757E69DF217 dbb36197-50f5-4e43-aa0d-917cd791a176 Hotel Create Reservation Request ----> [asd.txt](https://github.com/Travelport/travelport-uapi-tutorial/files/1159461/asd.txt)
vivekjyotipramanik commented 7 years ago

Hi Sapanesh,

Could you please try with a change from INF to CNN. Please find below the updated request. Also, Could you please confirm if the HotelRateDetail include rates for all the 3 guests. Please let us know how it goes. Thanks.

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
        <ns8:HotelCreateReservationReq xmlns:ns8="http://www.travelport.com/schema/universal_v41_0" TraceId="dbb36197-50f5-4e43-aa0d-917cd791a176" AuthorizedBy="Travelport" TargetBranch="P7040511" ProviderCode="1G" UserAcceptance="true">
            <BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v41_0" OriginApplication="uAPI"/>
                <BookingTraveler xmlns="http://www.travelport.com/schema/common_v41_0" Key="GAJOYrVu4hGShsrlYIhwmw==" TravelerType="ADT" Age="40" DOB="1977-07-19" Gender="M" Nationality="IN">
                    <BookingTravelerName Prefix="MR" First="Shubham" Last="Mahajan"/>
                    <PhoneNumber Location="DEN" CountryCode="1" AreaCode="303" Number="8989667804"/>
                    <Email EmailID="shubham@sphinx-solution.com"/>
                    <Address >
                        <AddressName>829 jetapure</AddressName>
                        <Street>SANAWAD ROAD</Street>
                        <City>KHARGONE</City>
                        <State>MP</State>
                        <PostalCode>451001</PostalCode>
                        <Country>IN</Country>
                    </Address>
                </BookingTraveler>
                <BookingTraveler xmlns="http://www.travelport.com/schema/common_v41_0" Key="GAJOYrVu4hDDhsrlYIhwmw==" TravelerType="CNN" Age="5" DOB="2012-07-19" Gender="M" Nationality="IN">
                    <BookingTravelerName Prefix="MSTR" First="Braj" Last="Mahajan"/>
                    <PhoneNumber Location="DEN" CountryCode="1" AreaCode="303" Number="8989667804"/>
                    <Email EmailID="shubham@sphinx-solution.com"/>
                    <Address >
                        <AddressName>829 jetapure</AddressName>
                        <Street>SANAWAD ROAD</Street>
                        <City>KHARGONE</City>
                        <State>MP</State>
                        <PostalCode>451001</PostalCode>
                        <Country>IN</Country>
                    </Address>
                </BookingTraveler>
                <BookingTraveler xmlns="http://www.travelport.com/schema/common_v41_0" Key="GAJOYrVu4hDShsrlYIhwmw==" TravelerType="CNN" Age="1" DOB="2016-07-19" Gender="M" Nationality="IN">
                    <BookingTravelerName Prefix="MSTR" First="Akshat" Last="Mahajan"/>
                    <PhoneNumber Location="DEN" CountryCode="1" AreaCode="303" Number="8989667804"/>
                    <Email EmailID="shubham@sphinx-solution.com"/>
                    <Address>
                        <AddressName>829 jetapure</AddressName>
                        <Street>SANAWAD ROAD</Street>
                        <City>KHARGONE</City>
                        <State>MP</State>
                        <PostalCode>451001</PostalCode>
                        <Country>IN</Country>
                    </Address>
                </BookingTraveler>
                <HotelRateDetail xmlns="http://www.travelport.com/schema/hotel_v41_0" RatePlanType="DLO0ZZZ" />
                    <HotelProperty  xmlns="http://www.travelport.com/schema/hotel_v41_0" HotelChain="WW" HotelCode="94759" />
                        <HotelStay xmlns="http://www.travelport.com/schema/hotel_v41_0">
                            <CheckinDate>2017-07-20</CheckinDate>
                            <CheckoutDate>2017-07-28</CheckoutDate>
                        </HotelStay>
                        <Guarantee xmlns="http://www.travelport.com/schema/common_v41_0" Type="Guarantee">
                            <CreditCard Type="VI" Number="4895390000000013" ExpDate="2017-12" Name="Shubham Mahajan" CVV="333"  BankName="USB" BankCountryCode="US"/>
                        </Guarantee>
                        <GuestInformation xmlns="http://www.travelport.com/schema/hotel_v41_0" NumberOfRooms="1">
                            <NumberOfAdults>1</NumberOfAdults>
                            <NumberOfChildren Count="2">
                                <Age>5</Age>
                                <Age>1</Age>
                            </NumberOfChildren>
                        </GuestInformation>
                    </ns8:HotelCreateReservationReq>
                </soapenv:Body>
            </soapenv:Envelope>