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

Not able to do seat assignment #305

Closed oldmonk7 closed 7 years ago

oldmonk7 commented 7 years ago

Hi @vivekjyotipramanik

I am trying to create a reservation with the following xml with But I get this response. I am creating new travelers so I dont have the BookingTravelerRef from Travelport.

Response SOAP:  <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Body>
         <SOAP:Fault>
            <faultcode>Server.InvalidRequestException</faultcode>
            <faultstring>[Error] :49:118: cvc-complex-type.2.4.a: Invalid content was found starting with element 'air:SpecificSeatAssignment'. One of '{"http://www.travelport.com/schema/common_v36_0":FormOfPayment, "http://www.travelport.com/schema/common_v36_0":SupplierLocator, "http://www.travelport.com/schema/common_v36_0":ThirdPartyInformation, "http://www.travelport.com/schema/common_v36_0":PointOfSale, "http://www.travelport.com/schema/air_v36_0":AirPricingSolution}' is expected.</faultstring>
<detail>
<ErrorInfo xmlns="http://www.travelport.com/schema/common_v36_0">
<Code>1000</Code>
<Service>WEBSVC</Service>
<Type>Data</Type>
<Description>Validation failed on request message.</Description>
<TransactionId>825C4F910A07643B769D83B90A9A7511</TransactionId>
<Auxdata>
<Entry>
<Reason>
LastElement</Reason>
<Description>Country BookingTravelerRef=P_0 SegmentRef=E8ay6sBAAA/BkZZjESAAAA== SeatId=7-C</Description>
</Entry>
</Auxdata>
</ErrorInfo></detail>
</SOAP:Fault>
      </SOAP:Body>
   </SOAP:Envelope>

REQ:

Request URL:  https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService
Request XML:  <!--AirCreateReservationReq-->
<!--Release 8.1-->
<!--Version Dated as of 15/Apr/2015 11:24:07-->
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:univ="http://www.travelport.com/schema/universal_v36_0">
        <univ:SupportedVersions airVersion="air_v36_0"/>
    </soap:Header>
    <soap:Body>
        <univ:AirCreateReservationReq AuthorizedBy="user" RuleName="SIP" RetainReservation="Both" TargetBranch="P7066482" TraceId="" xmlns:univ="http://www.travelport.com/schema/universal_v36_0"  xmlns:com="http://www.travelport.com/schema/common_v36_0" xmlns:air="http://www.travelport.com/schema/air_v36_0" xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0">
            <com:BillingPointOfSaleInfo OriginApplication="uAPI" />
            <com:BookingTraveler Key="P_0" Age="117" DOB="1900-01-01" Gender="M" TravelerType="ADT">
                <com:BookingTravelerName First="SHA" Last="GARG" />
                <com:DeliveryInfo>
                    <com:ShippingAddress>
                        <com:AddressName>SHA GARG</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:ShippingAddress>
                </com:DeliveryInfo>
                <com:PhoneNumber CountryCode="001" Number="4083222323" Type="Other"/>
                <com:Email EmailID="a@a.com" Type="Other"/>
                <com:SSR Type="DOCS" FreeText="P/US/ES111111/US/01Jan00/M/18Apr18/GARG/SHA"/>
                <!--<com:SSR Carrier="F9" FreeText="P/IN/F1234567/IN/05Jan85/M/13Dec14/Jones/Stephen"-->
                         <!--SegmentRef="IVaa0tGWQ+2grqSIL81xPQ==" Status="HK" Type="DOCS"/>-->
            </com:BookingTraveler>
            <com:BookingTraveler Key="P_1" Age="107" DOB="1910-01-01" Gender="M" TravelerType="ADT">
                <com:BookingTravelerName First="REID" Last="WILL" />
                <com:DeliveryInfo>
                    <com:ShippingAddress>
                        <com:AddressName>REID WILL</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:ShippingAddress>
                </com:DeliveryInfo>
                <com:PhoneNumber CountryCode="001" Number="4083221323" Type="Other"/>
                <com:Email EmailID="a@ab.com" Type="Other"/>
                <com:SSR Type="DOCS" FreeText="P/US/ES101010/US/01Jan10/M/18Apr18/WILL/REID"/>
                <!--<com:SSR Carrier="F9" FreeText="P/IN/F1234567/IN/05Jan85/M/13Dec14/Jones/Stephen"-->
                         <!--SegmentRef="IVaa0tGWQ+2grqSIL81xPQ==" Status="HK" Type="DOCS"/>-->
            </com:BookingTraveler>
            <com:FormOfPayment xmlns="http://www.travelport.com/schema/common_v40_0" Type="Credit" Key="1">
                <com:CreditCard Type="VI" CVV="123" ExpDate="2017-12" Name="John Doe" Number="4235284616437470">
                    <com:BillingAddress>
                       <com:AddressName>John Doe</com:AddressName>
                       <com:Street>80 S Park St.</com:Street>
                       <com:City>San Francisco</com:City>
                       <com:PostalCode>94143</com:PostalCode>
                       <com:Country>US</com:Country>
                    </com:BillingAddress>
                </com:CreditCard>
            </com:FormOfPayment>
            <air:SpecificSeatAssignment BookingTravelerRef="P_0" SegmentRef="E8ay6sBAAA/BkZZjESAAAA==" SeatId="7-C"/>
            <com:PointOfSale ProviderCode="1V" PseudoCityCode="2H41"/>
            <air:AirPricingSolution Key="ksy/it7Q2BKA0HQWBAAAAA==" TotalPrice="USD1594.60" BasePrice="USD1449.30" ApproximateTotalPrice="USD1594.60" ApproximateBasePrice="USD1449.30" Taxes="USD145.30" ApproximateTaxes="USD145.30" QuoteDate="2017-04-18" >
                  <air:AirSegment Key="ksy/it7Q2BKAxHQWBAAAAA==" Group="0" Carrier="AA" FlightNumber="1118" ProviderCode="1V" Origin="SFO" Destination="LGA" DepartureTime="2017-04-25T06:14:00.000-07:00" ArrivalTime="2017-04-25T17:15:00.000-04:00" FlightTime="481" TravelTime="481" Distance="2566" ClassOfService="H" Equipment="32B" NumberOfStops="1" ChangeOfPlane="false" OptionalServicesIndicator="true" LinkAvailability="true" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked">
    <air:CodeshareInfo OperatingCarrier="AA">American Airlines</air:CodeshareInfo>
    <air:FlightDetails Key="ksy/it7Q2BKAyHQWBAAAAA==" Origin="SFO" Destination="DFW" DepartureTime="2017-04-25T06:14:00.000-07:00" ArrivalTime="2017-04-25T11:49:00.000-05:00" FlightTime="215" TravelTime="215" Equipment="32B" OriginTerminal="2">
      <air:Connection Duration="56" SegmentIndex="0" FlightDetailsIndex="1"/>
      <air:Meals>FoodForPurchase</air:Meals>
      <air:InFlightServices>Audio Programming</air:InFlightServices>
      <air:InFlightServices>In-seat Video Player/Library</air:InFlightServices>
      <air:InFlightServices>Wi-Fi</air:InFlightServices>
      <air:InFlightServices>Non-smoking</air:InFlightServices>
      <air:InFlightServices>Audio Programming</air:InFlightServices>
      <air:InFlightServices>In-seat Video Player/Library</air:InFlightServices>
      <air:InFlightServices>Wi-Fi</air:InFlightServices>
      <air:InFlightServices>Non-smoking</air:InFlightServices>
      <air:InFlightServices>TSA SECURED FLIGHT</air:InFlightServices>
      <air:InFlightServices>TSA SECURED FLIGHT</air:InFlightServices>
    </air:FlightDetails>
    <air:FlightDetails Key="ksy/it7Q2BKAzHQWBAAAAA==" Origin="DFW" Destination="LGA" DepartureTime="2017-04-25T12:45:00.000-05:00" ArrivalTime="2017-04-25T17:15:00.000-04:00" FlightTime="210" TravelTime="210" Equipment="32B" DestinationTerminal="B">
      <air:Meals>FoodForPurchase</air:Meals>
      <air:InFlightServices>Audio Programming</air:InFlightServices>
      <air:InFlightServices>In-seat Video Player/Library</air:InFlightServices>
      <air:InFlightServices>Wi-Fi</air:InFlightServices>
      <air:InFlightServices>Non-smoking</air:InFlightServices>
      <air:InFlightServices>Audio Programming</air:InFlightServices>
      <air:InFlightServices>In-seat Video Player/Library</air:InFlightServices>
      <air:InFlightServices>Wi-Fi</air:InFlightServices>
      <air:InFlightServices>Non-smoking</air:InFlightServices>
      <air:InFlightServices>TSA SECURED FLIGHT</air:InFlightServices>
      <air:InFlightServices>TSA SECURED FLIGHT</air:InFlightServices>
    </air:FlightDetails>
  </air:AirSegment>
                  <air:AirPricingInfo Key="ksy/it7Q2BKA1HQWBAAAAA==" TotalPrice="USD797.30" BasePrice="USD724.65" ApproximateTotalPrice="USD797.30" ApproximateBasePrice="USD724.65" ApproximateTaxes="USD72.65" Taxes="USD72.65" LatestTicketingTime="2017-04-19T23:59:00.000-07:00" PricingMethod="Auto" Refundable="true" IncludesVAT="false" ETicketability="Yes" ProviderCode="1V">
    <air:FareInfo Key="ksy/it7Q2BKA6HQWBAAAAA==" FareBasis="H0AJZRN1" PassengerTypeCode="ADT" Origin="SFO" Destination="LGA" EffectiveDate="2017-04-18T11:38:00.000-07:00" DepartureDate="2017-04-25" Amount="USD724.65" TaxAmount="USD72.65">
      <air:FareRuleKey FareInfoRef="ksy/it7Q2BKA6HQWBAAAAA==" ProviderCode="1V">6UUVoSldxwjzsQ/NdgE+58bKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovAzc8zApWK8ZuO422wYI1U7el+I8CYW5AiVE2ipyGDQj7Qu0ZscBMSQ7AvMKi/VPtcmRDABslW+oVLi2k81eHMw0zsyzy7R7Ky2LgFn3B9sPd6v9tEaRJgF5C/YIEuJEelpGL74YNUBfVsbbOoAyZ1UFJTyB5x9tYSbUSm61kBU5OuGdrtUQs3wIylDHgzCe7l0ACA4xcw3/+xJ87pj2lFeiF/oTXxxF6MRdVAmZB4NevHZNO0IOqY3aUuA32Ku4i9WaBS9EqFylKiYqD1taBKM/VM3WoO74smzS1W9WmhLoIccvr40e6Z37hTdRV2s3CuDzD4Wdjal2fly5qxZ3qLwOXLmrFneovA5cuasWd6i8DUAh2WcSFc+w=</air:FareRuleKey>
      <air:Brand Key="ksy/it7Q2BKA6HQWBAAAAA==" BrandID="22272" Name="Main Cabin Flexible" UpSellBrandFound="false" Carrier="AA">
        <air:Title Type="External" LanguageCode="EN">Main Cabin Flexible</air:Title>
        <air:Title Type="Short" LanguageCode="EN">Main Cabin</air:Title>
        <air:Text Type="MarketingConsumer" LanguageCode="EN">A comfortable Main cabin with enhanced entertainment, power ports and Wi-Fi connectivity on every new plane

Plus, enjoy complimentary Biscoff cookies or mini pretzels on flights over 250 miles or a variety of other snacks and fresh meals for sale on board</air:Text>
        <air:Text Type="Upsell" LanguageCode="EN">Upgrade to Main Cabin to enjoy more flexibility, the ability to choose your seat, and a free carry on bag in addition to your personal item</air:Text>
        <air:Text Type="MarketingAgent" LanguageCode="EN">A comfortable Main cabin with enhanced entertainment, power ports and Wi-Fi connectivity on every new plane

Plus, enjoy complimentary Biscoff cookies or mini pretzels on flights over 250 miles or a variety of other snacks and fresh meals for sale on board</air:Text>
        <air:Text Type="Strapline" LanguageCode="EN">Main Cabin Flexible</air:Text>
        <air:ImageLocation Type="Agent" ImageWidth="150" ImageHeight="150">https://cdnpp.travelport.com/american/AA_general_medium_197.jpg</air:ImageLocation>
        <air:ImageLocation Type="Consumer" ImageWidth="150" ImageHeight="150">https://cdnpp.travelport.com/american/AA_general_medium_197.jpg</air:ImageLocation>
        <air:OptionalServices>
          <air:OptionalService Type="BundledService" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKA7HQWBAAAAA==" Chargeable="Included in the brand">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Group 1 Boarding</common_v36_0:Description>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Group 1 Boarding</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Conveniently be among the first to board and stow your luggage before all other general boarding groups. Purchase for your entire one-way journey (including connecting flights) on American's marketed and operated flights.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Conveniently be among the first to board and stow your luggage before all other general boarding groups. Purchase for your entire one-way journey (including connecting flights) on American's marketed and operated flights.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Group 1 Boarding</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Group 1 Bo</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="Baggage" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKA8HQWBAAAAA==" Chargeable="Available for a charge">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Checked bags</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Agent" height="55" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_182.jpg"/>
              <common_v36_0:MediaItem caption="Consumer" height="55" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_182.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Check in your bags for extra convenience</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">First checked bag is complimentary for eligible AAdvantage® Aviator™ and Citi® / AAdvantage® card members (on domestic American Airlines operated flights), AAdvantage Gold, Platinum and Executive Platinum members. See aa.com for more details.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">First checked bag is complimentary for eligible AAdvantage® Aviator™ and Citi® / AAdvantage® card members (on domestic American Airlines operated flights), AAdvantage Gold, Platinum and Executive Platinum members. See aa.com for more details.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Checked bags</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Bags</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="Baggage" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKA9HQWBAAAAA==" SecondaryType="CY" Chargeable="Included in the brand">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Carry on bags</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Agent" height="60" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_183.jpg"/>
              <common_v36_0:MediaItem caption="Consumer" height="60" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_183.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Taking bags on board</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Your carry on bag must be small enough to fit in the overhead bin or under the seat, otherwise it may need to be checked</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Your carry on bag must be small enough to fit in the overhead bin or under the seat, otherwise it may need to be checked</air:Text>
            <air:Title Type="External" LanguageCode="EN">Carry on bags</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Carry bags</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="FrequentFlyer" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKA+HQWBAAAAA==" SecondaryType="MG" Chargeable="Included in the brand">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>AAdvantage Miles</common_v36_0:Description>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">AAdvantage Miles</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">As a member of the AAdvantage® program, you ll earn miles when you fly on American, oneworld® and other participating airlines, as well as over 1,000 partners. Then, you can use your miles for flights to nearly 1,000 destinations worldwide, flight upgrades, vacations, car rentals and hotels.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">As a member of the AAdvantage® program, you ll earn miles when you fly on American, oneworld® and other participating airlines, as well as over 1,000 partners. Then, you can use your miles for flights to nearly 1,000 destinations worldwide, flight upgrades, vacations, car rentals and hotels.</air:Text>
            <air:Title Type="External" LanguageCode="EN">AAdvantage Miles</air:Title>
            <air:Title Type="Short" LanguageCode="EN">AAdvantage</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="InFlightEntertainment" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKA/HQWBAAAAA==" SecondaryType="HS" Chargeable="Not offered">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Tablet</common_v36_0:Description>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Tablet</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">The Samsung Galaxy TabTM, featuring a 10.1 inch screen, is offered to our First and Business Class customers on select international and transcontinental flights where in-seat entertainment is not available. Enjoy a variety of options including new movie releases, hit TV programs, games, music and best-selling book excerpts.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">The Samsung Galaxy TabTM, featuring a 10.1 inch screen, is offered to our First and Business Class customers on select international and transcontinental flights where in-seat entertainment is not available. Enjoy a variety of options including new movie releases, hit TV programs, games, music and best-selling book excerpts.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Tablet</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Tablet</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="InFlightEntertainment" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKAAIQWBAAAAA==" SecondaryType="IT" Chargeable="Available for a charge">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>In flight WiFi</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Agent" height="60" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_190.jpg"/>
              <common_v36_0:MediaItem caption="Consumer" height="60" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_190.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Stay connected whilst in the air</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Stay connected using any Wi-Fi enabled device, including smartphones (in airplane mode). Wi-Fi is available on nearly all flights within the U.S., including our two-class regional jets. Daily and monthly passes are available on aa.com. Enjoy Wi-Fi service when traveling internationally on our 777-300ER, 787 Dreamliner and select 777-200 planes.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Stay connected using any Wi-Fi enabled device, including smartphones (in airplane mode). Wi-Fi is available on nearly all flights within the U.S., including our two-class regional jets. Daily and monthly passes are available on aa.com. Enjoy Wi-Fi service when traveling internationally on our 777-300ER, 787 Dreamliner and select 777-200 planes.</air:Text>
            <air:Title Type="External" LanguageCode="EN">In flight WiFi</air:Title>
            <air:Title Type="Short" LanguageCode="EN">WiFi</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="Lounge" CreateDate="2017-04-18T18:38:58.120+00:00" ServiceSubCode="0BX" Key="ksy/it7Q2BKABIQWBAAAAA==" Chargeable="Available for a charge">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Admirals Club</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Agent" height="54" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_186.jpg"/>
              <common_v36_0:MediaItem caption="Consumer" height="54" width="60" url="https://cdnpp.travelport.com/american/AA_general_medium_186.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Merchandising"/>
            <air:Text Type="Strapline" LanguageCode="EN">Enjoy a quiet, relaxing escape within the airport.</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Enjoy a quiet, relaxing escape within the airport. With a professional environment, personalized services and exceptional amenities, you can choose to relax or be productive.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Enjoy a quiet, relaxing escape within the airport. With a professional environment, personalized services and exceptional amenities, you can choose to relax or be productive.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Admirals Club</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Lounge</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="MealOrBeverage" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKACIQWBAAAAA==" Chargeable="Available for a charge">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Meals and drinks on board</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Agent" height="56" width="60" url="https://merchandisingmanagement.pp.travelport.com/documents/10431/12007/Food%20-%202%20-%2060x60.jpg"/>
              <common_v36_0:MediaItem caption="Consumer" height="56" width="60" url="https://merchandisingmanagement.pp.travelport.com/documents/10431/12007/Food%20-%202%20-%2060x60.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">On board catering</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Complimentary meals and drinks are served on board.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Complimentary meals and drinks are served on board.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Meals and drinks on board</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Meals</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="RuleOverride" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKADIQWBAAAAA==" Chargeable="Included in the brand">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Rebooking</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Consumer" height="60" width="60" url="https://merchandisingmanagement.pp.travelport.com/documents/10431/12007/Rebooking%20-%2060x60.jpg"/>
              <common_v36_0:MediaItem caption="Agent" height="60" width="60" url="https://merchandisingmanagement.pp.travelport.com/documents/10431/12007/Rebooking%20-%2060x60.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Making changes to your reservation</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">At American Airlines we understand that from time to time you may need to amend your reservation. The amount you will need to pay will depend on the route and class booked.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">At American Airlines we understand that from time to time you may need to amend your reservation. The amount you will need to pay will depend on the route and class booked.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Rebooking</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Rebooking</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="RuleOverride" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKAEIQWBAAAAA==" Chargeable="Included in the brand">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>Refunds</common_v36_0:Description>
              <common_v36_0:MediaItem caption="Agent" height="58" width="60" url="https://merchandisingmanagement.pp.travelport.com/documents/10431/12007/Call%20centre%20-%2060x60.jpg"/>
              <common_v36_0:MediaItem caption="Consumer" height="58" width="60" url="https://merchandisingmanagement.pp.travelport.com/documents/10431/12007/Call%20centre%20-%2060x60.jpg"/>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">Cancelling your reservation</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">We understand that from time to time you may need to cancel your reservation. The amount you will receive in refund will depend on the route and class booked.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">We understand that from time to time you may need to cancel your reservation. The amount you will receive in refund will depend on the route and class booked.</air:Text>
            <air:Title Type="External" LanguageCode="EN">Refunds</air:Title>
            <air:Title Type="Short" LanguageCode="EN">Refunds</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="Standby" CreateDate="2017-04-18T18:38:58.120+00:00" ServiceSubCode="0BV" Key="ksy/it7Q2BKAFIQWBAAAAA==" Chargeable="Available for a charge">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>SAME DAY STANDBY</common_v36_0:Description>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Ticket"/>
            <air:Text Type="Strapline" LanguageCode="EN">SAME DAY STANDBY</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">You can standby on a different flight as long as the alternate flight has the same origin and destination, is for the same calendar day of departure and has eligible seats available.</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">You can standby on a different flight as long as the alternate flight has the same origin and destination, is for the same calendar day of departure and has eligible seats available.</air:Text>
            <air:Title Type="External" LanguageCode="EN">SAME DAY STANDBY</air:Title>
            <air:Title Type="Short" LanguageCode="EN">SAME DAY S</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="TravelServices" CreateDate="2017-04-18T18:38:58.120+00:00" Key="ksy/it7Q2BKAGIQWBAAAAA==" SecondaryType="CI" Chargeable="Included in the brand">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>check in</common_v36_0:Description>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">check in</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Our exclusive Flagship Check-In service offers customers a private check-in experience, including and an expedited security line, offering you premium access through security checkpoints</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Our exclusive Flagship Check-In service offers customers a private check-in experience, including and an expedited security line, offering you premium access through security checkpoints</air:Text>
            <air:Title Type="External" LanguageCode="EN">check in</air:Title>
            <air:Title Type="Short" LanguageCode="EN">check in</air:Title>
          </air:OptionalService>
          <air:OptionalService Type="TravelServices" CreateDate="2017-04-18T18:38:58.120+00:00" ServiceSubCode="0G6" Key="ksy/it7Q2BKAHIQWBAAAAA==" SecondaryType="PR" Chargeable="Available for a charge">
            <common_v36_0:ServiceData AirSegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
            <common_v36_0:ServiceInfo>
              <common_v36_0:Description>PRIORITY BOARDING</common_v36_0:Description>
            </common_v36_0:ServiceInfo>
            <air:EMD AssociatedItem="Flight"/>
            <air:Text Type="Strapline" LanguageCode="EN">PRIORITY BOARDING</air:Text>
            <air:Text Type="MarketingAgent" LanguageCode="EN">Priority lanes are available at American Airlines gates system wide, offering a fast track to be among the first invited to board the plane. Priority benefits also include the use of exclusive security screening lanes (where available) and dedicated check-in areas at ticket counters</air:Text>
            <air:Text Type="MarketingConsumer" LanguageCode="EN">Priority lanes are available at American Airlines gates system wide, offering a fast track to be among the first invited to board the plane. Priority benefits also include the use of exclusive security screening lanes (where available) and dedicated check-in areas at ticket counters</air:Text>
            <air:Title Type="External" LanguageCode="EN">PRIORITY BOARDING</air:Title>
            <air:Title Type="Short" LanguageCode="EN">PRIORITY B</air:Title>
          </air:OptionalService>
        </air:OptionalServices>
      </air:Brand>
    </air:FareInfo>
    <air:BookingInfo BookingCode="H" CabinClass="Economy" FareInfoRef="ksy/it7Q2BKA6HQWBAAAAA==" SegmentRef="ksy/it7Q2BKAxHQWBAAAAA=="/>
    <air:TaxInfo Category="AY" Amount="USD5.60" Key="ksy/it7Q2BKA2HQWBAAAAA=="/>
    <air:TaxInfo Category="US" Amount="USD54.35" Key="ksy/it7Q2BKA3HQWBAAAAA=="/>
    <air:TaxInfo Category="XF" Amount="USD4.50" Key="ksy/it7Q2BKA4HQWBAAAAA==">
      <common_v36_0:TaxDetail Amount="USD4.50" OriginAirport="SFO"/>
    </air:TaxInfo>
    <air:TaxInfo Category="ZP" Amount="USD8.20" Key="ksy/it7Q2BKA5HQWBAAAAA==">
      <common_v36_0:TaxDetail Amount="USD4.10" OriginAirport="SFO"/>
      <common_v36_0:TaxDetail Amount="USD4.10" OriginAirport="DFW"/>
    </air:TaxInfo>
    <air:FareCalc>SFO AA NYC 724.65H0AJZRN1 USD724.65END</air:FareCalc>
    <air:PassengerType BookingTravelerRef="P_0" Code="ADT" Age="117"/>
    <air:PassengerType BookingTravelerRef="P_1" Code="ADT" Age="107"/>
    <air:BaggageAllowances>
      <air:BaggageAllowanceInfo TravelerType="ADT" Origin="SFO" Destination="NYC" Carrier="AA">
        <air:URLInfo>
          <air:URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSAA.BAGG</air:URL>
        </air:URLInfo>
        <air:TextInfo>
          <air:Text>0P</air:Text>
          <air:Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</air:Text>
        </air:TextInfo>
        <air:BagDetails ApplicableBags="1stChecked" BasePrice="USD25.00" ApproximateBasePrice="USD25.00" TotalPrice="USD25.00" ApproximateTotalPrice="USD25.00">
          <air:BaggageRestriction>
            <air:TextInfo>
              <air:Text>UPTO50LB/23KG AND UPTO62LI/158LCM</air:Text>
            </air:TextInfo>
          </air:BaggageRestriction>
        </air:BagDetails>
        <air:BagDetails ApplicableBags="2ndChecked" BasePrice="USD35.00" ApproximateBasePrice="USD35.00" TotalPrice="USD35.00" ApproximateTotalPrice="USD35.00">
          <air:BaggageRestriction>
            <air:TextInfo>
              <air:Text>UPTO50LB/23KG AND UPTO62LI/158LCM</air:Text>
            </air:TextInfo>
          </air:BaggageRestriction>
        </air:BagDetails>
      </air:BaggageAllowanceInfo>
      <air:CarryOnAllowanceInfo Origin="SFO" Destination="NYC" Carrier="AA">
        <air:TextInfo>
          <air:Text>2P</air:Text>
        </air:TextInfo>
        <air:CarryOnDetails ApplicableCarryOnBags="1" BasePrice="USD0.00" ApproximateBasePrice="USD0.00" TotalPrice="USD0.00" ApproximateTotalPrice="USD0.00">
          <air:BaggageRestriction>
            <air:TextInfo>
              <air:Text>UPTO45LI/115LCM</air:Text>
            </air:TextInfo>
          </air:BaggageRestriction>
        </air:CarryOnDetails>
        <air:CarryOnDetails ApplicableCarryOnBags="2" BasePrice="USD0.00" ApproximateBasePrice="USD0.00" TotalPrice="USD0.00" ApproximateTotalPrice="USD0.00">
          <air:BaggageRestriction>
            <air:TextInfo>
              <air:Text>CARRYON HAND BAGGAGE ALLOWANCE</air:Text>
            </air:TextInfo>
          </air:BaggageRestriction>
        </air:CarryOnDetails>
      </air:CarryOnAllowanceInfo>
      <air:EmbargoInfo Origin="SFO" Destination="NYC" Carrier="AA">
        <air:URLInfo>
          <air:URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSAA.BAGG</air:URL>
        </air:URLInfo>
        <air:TextInfo>
          <air:Text>888</air:Text>
        </air:TextInfo>
      </air:EmbargoInfo>
    </air:BaggageAllowances>
  </air:AirPricingInfo>
                  <air:FareNote Key="ksy/it7Q2BKAJIQWBAAAAA==">LAST DATE TO PURCHASE TICKET: 19APR17</air:FareNote>
  <air:FareNote Key="ksy/it7Q2BKAKIQWBAAAAA==">TICKETING AGENCY 2H41</air:FareNote>
  <air:FareNote Key="ksy/it7Q2BKALIQWBAAAAA==">DEFAULT PLATING CARRIER AA</air:FareNote>
  <air:FareNote Key="ksy/it7Q2BKAMIQWBAAAAA==">E-TKT REQUIRED</air:FareNote>
            </air:AirPricingSolution>

            <com:ActionStatus Type="TAU" TicketDate="2017-04-18T18:38:58Z" ProviderCode="1V" PseudoCityCode="2H41"/>

        </univ:AirCreateReservationReq>
    </soap:Body>
</soap:Envelope>
oldmonk7 commented 7 years ago

@vivekjyotipramanik any thing you would suggest on this?

vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

The PointOfSale hould be before specificSeatAssigment. Could you please change the location of PointOfSale and give it a try again. Please let us know how it goes. Thanks.

oldmonk7 commented 7 years ago

hi @vivekjyotipramanik I moved the SpecificSeatAssigment to the end and now I get a diff error

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP:Body><SOAP:Fault><faultcode>Server.System</faultcode><faultstring>Key reference not found for AirSegment with key reference ksy/it7Q2BKAJTcEBAAAAA== inside SpecificSeatAssignment</faultstring><detail><common_v36_0:ErrorInfo xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0"><common_v36_0:Code>3003</common_v36_0:Code><common_v36_0:Service>PROVISIONINGSERVICE</common_v36_0:Service><common_v36_0:Type>System</common_v36_0:Type><common_v36_0:Description>Key reference not found for AirSegment with key reference ksy/it7Q2BKAJTcEBAAAAA== inside SpecificSeatAssignment</common_v36_0:Description><common_v36_0:TransactionId>89898B9D0A07643C69F679EA1348158E</common_v36_0:TransactionId><common_v36_0:TraceId/></common_v36_0:ErrorInfo></detail></SOAP:Fault></SOAP:Body></SOAP:Envelope>

for the req: aircreateres-withseats.txt

oldmonk7 commented 7 years ago

hi @vivekjyotipramanik any suggestions on this.

vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

The SegmentRef used in the SpecificSeatAssigment is not matching the AirSement Key used in AirPricingSolution. Please replace the key with ksy/it7Q2BKATLZuBAAAAA== in SegmentRef and it should work fine. Thanks.