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 Rail Reservation #98

Open anandmahajan opened 8 years ago

anandmahajan commented 8 years ago

Hi,

Pls provide RailCreateReservationReq /RailCreateReservationRsp Branch Code -->P7040511 `<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:univ="http://www.travelport.com/schema/universal_v38_0" xmlns:com="http://www.travelport.com/schema/common_v38_0" xmlns:rail="http://www.travelport.com/schema/rail_v38_0">

<soapenv:Body>
    <univ:RailCreateReservationReq TraceId="5ccf7d74-d838-4698-a0ac-8931e512bec9" AuthorizedBy="user" BookingActionType="Final" TargetBranch="P7040511" RetrieveProviderReservationDetails="false" >
        <com:BillingPointOfSaleInfo OriginApplication="uapi"/>
        <com:BookingTraveler Age="45" DOB="1966-05-08" Key="LO+6XgYQTrqq+S0pndtprA==" TravelerType="ADT">
            <com:BookingTravelerName First="John" Last="Doe" Middle="Mid" Prefix="Mr" Suffix="Jr"/>
            <!--Zero or more repetitions:-->
            <com:DeliveryInfo>
                <com:ShippingAddress>
                    <com:AddressName>DemoSiteAddress</com:AddressName>
                    <com:Street>Via Augusta 59 5</com:Street>
                    <com:City>Madrid</com:City>
                    <com:State>IA</com:State>
                    <com:PostalCode>50156</com:PostalCode>
                    <com:Country>US</com:Country>
                </com:ShippingAddress>
                <com:PhoneNumber Location="DEN" CountryCode="1" AreaCode="303" Number="123456789"/>
                <com:Email EmailID="johnsmith@travelportuniversalapidemo.com"/>
            </com:DeliveryInfo>
            <!--Zero or more repetitions:-->
            <com:PhoneNumber Location="DEN" CountryCode="1" AreaCode="303" Number="123456789"/>
            <com:Email EmailID="johnsmith@travelportuniversalapidemo.com"/>
            <com:Address>
                <com:AddressName>DemoSiteAddress</com:AddressName>
                <com:Street>Via Augusta 59 5</com:Street>
                <com:City>Madrid</com:City>
                <com:State>IA</com:State>
                <com:PostalCode>50156</com:PostalCode>
                <com:Country>US</com:Country>
            </com:Address>
        </com:BookingTraveler>
        <com:FormOfPayment  FulfillmentType="Ticket on Departure" Key="LO+7YhXOFrqq+S0pndtqrA==" Type="Credit">
            <com:CreditCard CVV="256" ExpDate="2018-11" Key="1" Name="John Doe" Number="4123456789001111" Type="VI">
                <com:BillingAddress>
                    <com:AddressName>DemoSiteAddress</com:AddressName>
                    <com:Street>Via Augusta 59 5</com:Street>
                    <com:City>Madrid</com:City>
                    <com:State>IA</com:State>
                    <com:PostalCode>50156</com:PostalCode>
                    <com:Country>US</com:Country>
                </com:BillingAddress>
            </com:CreditCard>
        </com:FormOfPayment>
        <rail:RailPricingSolution Key="Af8dT6P4QAeFFYNyI1HhZg==" OfferId="7" TotalPrice="EUR292.00" ApproximateTotalPrice="GBP252.70" ProviderCode="RCH" SupplierCode="BN" HostTokenRef="63246ce1-6e3d-4364-a69d-7e7c4815439d">
            <rail:RailJourney Key="/Rp67tkUQNGAk7VoHWSyLQ==" Origin="AMS" Destination="QQS" DepartureTime="2016-10-15T06:17:00.000+02:00" ArrivalTime="2016-10-15T09:57:00.000+01:00" OriginStationName="AMSTERDAM C." DestinationStationName="LONDON ST. PANCRAS INTERNATIONAL" RailLocOrigin="U8498405" RailLocDestination="U7015400" JourneyDuration="280" RouteReference="3" ProviderCode="RCH" SupplierCode="BN">
                <rail:RailSegment Key="aUQjcRCpSHKHL6F4a19aEg==" TrainNumber="9310" Origin="AMS" Destination="ZYR" DepartureTime="2016-10-15T06:17:00.000+02:00" ArrivalTime="2016-10-15T08:08:00.000+02:00" OriginStationName="AMSTERDAM C." DestinationStationName="BRUSSEL-ZUID" RailLocOrigin="U8498405" RailLocDestination="U8814001" TransportMode="Train" SeatAssignable="true" ReservationRequired="true" TravelTime="111">
                    <rail:RailSegmentInfo Category="FulfilmentType" Type="Extra">12.DTB 9.DTB 2.DTB 1.DTB 5.DTB </rail:RailSegmentInfo>
                </rail:RailSegment>
                <rail:RailSegment Key="qaPf9cUfTLy1+mXvqnZ9Cg==" TrainNumber="9812" Origin="ZYR" Destination="XDB" DepartureTime="2016-10-15T08:17:00.000+02:00" ArrivalTime="2016-10-15T08:52:00.000+02:00" OriginStationName="BRUSSEL-ZUID" DestinationStationName="LILLE EUROPE" RailLocOrigin="U8814001" RailLocDestination="U8722326" TransportMode="Train" SeatAssignable="true" ReservationRequired="true" TravelTime="35">
                    <rail:RailSegmentInfo Category="FulfilmentType" Type="Extra">9.DTB 2.DTB 1.DTB </rail:RailSegmentInfo>
                </rail:RailSegment>
                <rail:RailSegment Key="/gfOCu4nR2mX2z2A9kiHXg==" TrainNumber="9117" Origin="XDB" Destination="QQS" DepartureTime="2016-10-15T09:30:00.000+02:00" ArrivalTime="2016-10-15T09:57:00.000+01:00" OriginStationName="LILLE EUROPE" DestinationStationName="LONDON ST. PANCRAS INTERNATIONAL" RailLocOrigin="U8722326" RailLocDestination="U7015400" TransportMode="Train" SeatAssignable="true" ReservationRequired="true" TravelTime="87">
                    <rail:RailSegmentInfo Category="FulfilmentType" Type="Extra">12.DTB 9.DTB 2.DTB 1.DTB </rail:RailSegmentInfo>
                </rail:RailSegment>
            </rail:RailJourney>
            <rail:RailPricingInfo Key="QaaUGaKqQvCN5yfyNyDmKg==" TotalPrice="EUR292.00" ApproximateTotalPrice="GBP252.70">
                <rail:RailFare Key="3eFVeSYgSE+p87JoL675zw==" FareBasis="Semi Flex (BF) - Comfort 2" CabinClass="Economy" PassengerTypeCode="ADT" Origin="AMS" Destination="ZYR" EffectiveDate="2016-10-14T08:34:30.581+00:00" Amount="EUR82.00" TicketTypeCode="BF" FareReference="35:THA" CrossCityFare="false" OriginStationName="AMSTERDAM C." DestinationStationName="BRUSSEL-ZUID" ReservationRequired="true" RailLocOrigin="U8498405" RailLocDestination="U8814001"></rail:RailFare>
                <rail:RailFare Key="mUqyZvzBQteQnWU0JZyR7g==" FareBasis="Loisir (BG) - 2nd class" CabinClass="Economy" PassengerTypeCode="ADT" Origin="ZYR" Destination="XDB" EffectiveDate="2016-10-14T08:34:30.581+00:00" Amount="EUR30.00" TicketTypeCode="UN" FareReference="36:TGV" CrossCityFare="false" OriginStationName="BRUSSEL-ZUID" DestinationStationName="LILLE EUROPE" ReservationRequired="true" RailLocOrigin="U8814001" RailLocDestination="U8722326"></rail:RailFare>
                <rail:RailFare Key="DTaw24P4QXmS2kX8wVey5w==" FareBasis="Semi flex (BT) - Standard" CabinClass="Economy" PassengerTypeCode="ADT" Origin="XDB" Destination="QQS" EffectiveDate="2016-10-14T08:34:30.581+00:00" Amount="EUR180.00" TicketTypeCode="BT" FareReference="37:EUR" CrossCityFare="false" OriginStationName="LILLE EUROPE" DestinationStationName="LONDON ST. PANCRAS INTERNATIONAL" ReservationRequired="true" RailLocOrigin="U8722326" RailLocDestination="U7015400"></rail:RailFare>
                <rail:RailBookingInfo RailFareRef="3eFVeSYgSE+p87JoL675zw==" RailJourneyRef="/Rp67tkUQNGAk7VoHWSyLQ=="/>
                <rail:RailBookingInfo RailFareRef="mUqyZvzBQteQnWU0JZyR7g==" RailJourneyRef="/Rp67tkUQNGAk7VoHWSyLQ=="/>
                <rail:RailBookingInfo RailFareRef="DTaw24P4QXmS2kX8wVey5w==" RailJourneyRef="/Rp67tkUQNGAk7VoHWSyLQ=="/>
                <rail:PassengerType Code="ADT" Age="40" BookingTravelerRef="LO+6XgYQTrqq+S0pndtprA=="></rail:PassengerType>
            </rail:RailPricingInfo>
        </rail:RailPricingSolution>
        <com:Payment Amount="GBP252.70" ApproximateAmount="GBP252.70" BookingTravelerRef="LO+6XgYQTrqq+S0pndtprA==" FormOfPaymentRef="LO+7YhXOFrqq+S0pndtqrA==" Key="Mtks1xNNOmuJdFRvCybKxg==" Type="TicketFee"/>
    </univ:RailCreateReservationReq>
</soapenv:Body>

</soapenv:Envelope>`

vivekjyotipramanik commented 8 years ago

Hi anandmahajan,

Please find below the samples. Please let me know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#SampleWeb/Individual_Sample_Pages/084-RCH-Amtrak_Rail_AvailabilityToHistory.htm%3FTocPath%3DGetting%2520Started%7CSamples%7CXML%2520Samples%2520%7CRail%7CRail%2520Workflows%7C_____1****

Thanks & Regards Vivekjyoti Pramanik

anandmahajan commented 8 years ago

Hi @vivekjyotipramanik getting same error as per sample request "Host Connection Credentials not available " Here is my Branch code-->P7040511 PCC-->7J1Y Username-->Universal API/uAPI8100843523-3fda1117

anandmahajan commented 8 years ago

@vivekjyotipramanik any update on this error ???

NirandaG commented 8 years ago

Hi anandmahajan,

I have checked your account and I see that RCH is not enabled in the target branch. That could be the reason you are not allowed to complete this transaction. Please contact your Travelport Account Manager to assist with this.

Thank you, Niranda