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

Infant Ticket Price #36

Open dbongs opened 8 years ago

dbongs commented 8 years ago

Hi Vivek,

Can you please check why the infant price comes back similar to the child price in the req and resp below. my client says the infant price should be less from child as age is not the same.

Req

<?xml version="1.0" encoding="utf-16" ?> 
- <AirPriceReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="P7023658">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
- <AirItinerary xmlns="http://www.travelport.com/schema/air_v29_0">
- <AirSegment Key="3gi25Zl8QEW5y3jWGrWWAw==" ETicketability="Yes" Equipment="734" AvailabilitySource="A" OptionalServicesIndicator="false" AvailabilityDisplayType="Fare Shop/Optimal Shop" LinkAvailability="true" Group="0" Carrier="BA" FlightNumber="6202" Origin="DUR" Destination="JNB" DepartureTime="2016-02-24T08:50:00.000+02:00" ArrivalTime="2016-02-24T09:55:00.000+02:00" FlightTime="65" Distance="309" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="Polled avail exists">
  <CodeshareInfo OperatingCarrier="MN" OperatingFlightNumber="0">COMMERCIAL AIRW</CodeshareInfo> 
- <AirAvailInfo ProviderCode="1G">
  <BookingCodeInfo BookingCounts="J9|C9|D9|R9|Y9|B9|H9|K9|M9|L9|V9|S9|N9|Q9|O9|G9" /> 
  </AirAvailInfo>
  </AirSegment>
- <AirSegment Key="voLbFbF7SwCcvLn06xr7gQ==" ETicketability="Yes" Equipment="734" AvailabilitySource="A" OptionalServicesIndicator="false" AvailabilityDisplayType="Fare Shop/Optimal Shop" LinkAvailability="true" Group="1" Carrier="BA" FlightNumber="6201" Origin="JNB" Destination="DUR" DepartureTime="2016-02-26T07:00:00.000+02:00" ArrivalTime="2016-02-26T08:05:00.000+02:00" FlightTime="65" Distance="309" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="Polled avail exists">
  <CodeshareInfo OperatingCarrier="MN" OperatingFlightNumber="0">COMMERCIAL AIRW</CodeshareInfo> 
- <AirAvailInfo ProviderCode="1G">
  <BookingCodeInfo BookingCounts="J9|C9|D9|R9|Y9|B9|H9|K9|M9|L9|V9|S9|N9|Q9|O9|G9" /> 
  </AirAvailInfo>
  </AirSegment>
  </AirItinerary>
  <AirPricingModifiers PlatingCarrier="BA" CurrencyType="ZAR" FiledCurrency="ZAR" xmlns="http://www.travelport.com/schema/air_v29_0" /> 
  <SearchPassenger Code="ADT" BookingTravelerRef="fdh1JnxX" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <SearchPassenger Code="CHD" BookingTravelerRef="qvptmDWc" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <SearchPassenger Code="INS" Age="1" BookingTravelerRef="nXx8pCIU" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <AirPricingCommand CabinClass="Economy" xmlns="http://www.travelport.com/schema/air_v29_0" /> 
  </AirPriceReq>
NirandaG commented 8 years ago

Hi Dbongs,

I will check this and get back to you.

Thank you, B.Rgds, Niranda

dbongs commented 8 years ago

Thanks Niranda,

awaiting your answer.

NirandaG commented 8 years ago

Hi Dbongs,

In the request the the SearchPassenger Code for the Infant is wrong. Below is the successful request that different fares for the 3 passengers will be returned.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header />
   <soapenv:Body>
     <air:AirPriceReq xmlns:air="http://www.travelport.com/schema/air_v34_0" AuthorizedBy="user" TargetBranch="P7023658" TraceId="trace">
      <com:BillingPointOfSaleInfo xmlns:com="http://www.travelport.com/schema/common_v34_0" OriginApplication="UAPI" />
       <air:AirItinerary>
         <air:AirSegment Key="3gi25Zl8QEW5y3jWGrWWAw==" ETicketability="Yes" Equipment="734" AvailabilitySource="A" OptionalServicesIndicator="false" AvailabilityDisplayType="Fare Shop/Optimal Shop" LinkAvailability="true" Group="0" Carrier="BA" FlightNumber="6202" Origin="DUR" Destination="JNB" DepartureTime="2016-02-24T08:50:00.000+02:00" ArrivalTime="2016-02-24T09:55:00.000+02:00" FlightTime="65" Distance="309" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="Polled avail exists">
           <air:CodeshareInfo OperatingCarrier="MN" OperatingFlightNumber="0">COMMERCIAL AIRW</air:CodeshareInfo>
           <air:AirAvailInfo ProviderCode="1G">
           <air:BookingCodeInfo BookingCounts="J9|C9|D9|R9|Y9|B9|H9|K9|M9|L9|V9|S9|N9|Q9|O9|G9" />
         </air:AirAvailInfo>
         </air:AirSegment>
         <air:AirSegment Key="voLbFbF7SwCcvLn06xr7gQ==" ETicketability="Yes" Equipment="734" AvailabilitySource="A" OptionalServicesIndicator="false" AvailabilityDisplayType="Fare Shop/Optimal Shop" LinkAvailability="true" Group="1" Carrier="BA" FlightNumber="6201" Origin="JNB" Destination="DUR" DepartureTime="2016-02-26T07:00:00.000+02:00" ArrivalTime="2016-02-26T08:05:00.000+02:00" FlightTime="65" Distance="309" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="Polled avail exists">
           <air:CodeshareInfo OperatingCarrier="MN" OperatingFlightNumber="0">COMMERCIAL AIRW</air:CodeshareInfo>
         <air:AirAvailInfo ProviderCode="1G">
           <air:BookingCodeInfo BookingCounts="J9|C9|D9|R9|Y9|B9|H9|K9|M9|L9|V9|S9|N9|Q9|O9|G9" />
         </air:AirAvailInfo>
         </air:AirSegment>
       </air:AirItinerary>
      <com:SearchPassenger xmlns:com="http://www.travelport.com/schema/common_v34_0" BookingTravelerRef="A" Code="ADT" />
       <com:SearchPassenger xmlns:com="http://www.travelport.com/schema/common_v34_0" BookingTravelerRef="B" Code="CHD" />
       <com:SearchPassenger xmlns:com="http://www.travelport.com/schema/common_v34_0" BookingTravelerRef="C" Code="INF" />
      <air:AirPricingCommand CabinClass="Economy" />
    </air:AirPriceReq>
  </soapenv:Body>
</soapenv:Envelope>

Please let me know if you have any further questions on this.

Thank you, B.Rgds, Niranda

NirandaG commented 8 years ago
dbongs commented 8 years ago

Hi Niranda, Please check why i get an invalid email format for the request below

<?xml version="1.0" encoding="utf-16" ?> 
- <AirCreateReservationReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="P7023658" RetainReservation="Both">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
- <BookingTraveler Key="s4AiXaGrd0uK2ScLvaDJsQ==" TravelerType="ADT" Gender="M" xmlns="http://www.travelport.com/schema/common_v29_0">
  <BookingTravelerName First="Bongani" Last="Fankomo" /> 
  <PhoneNumber Number="0794866362" /> 
  <Email Type="Home" EmailID="Louis@salienttravel.co.za" /> 
  </BookingTraveler>
- <AirPricingSolution Key="zu1SazeTSBapL6YzHoyFNw==" TotalPrice="ZAR1407.44" BasePrice="ZAR100.00" ApproximateTotalPrice="ZAR1407.44" ApproximateBasePrice="ZAR100.00" Taxes="ZAR1307.44" ApproximateTaxes="ZAR1307.44" xmlns="http://www.travelport.com/schema/air_v29_0">
  <AirSegment Key="mHAtFNG1SFOximL2zsV7cA==" Equipment="738" AvailabilitySource="A" ClassOfService="O" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked" Group="0" Carrier="BA" FlightNumber="6200" Origin="DUR" Destination="JNB" DepartureTime="2016-03-24T06:30:00.000+02:00" ArrivalTime="2016-03-24T07:35:00.000+02:00" FlightTime="65" TravelTime="65" Distance="309" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="O and D cache or polled status used with different local status" /> 
  <AirSegment Key="RrtCvet7SKS8cJTS5qzgCg==" Equipment="734" AvailabilitySource="A" ClassOfService="O" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked" Group="1" Carrier="BA" FlightNumber="6201" Origin="JNB" Destination="DUR" DepartureTime="2016-03-31T07:00:00.000+02:00" ArrivalTime="2016-03-31T08:05:00.000+02:00" FlightTime="65" TravelTime="65" Distance="309" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="O and D cache or polled status used with different local status" /> 
- <AirPricingInfo LatestTicketingTime="2016-03-02T23:59:00.000+02:00" PricingMethod="Manual" Taxes="ZAR1307.44" Key="cwfgjlQHQzW+xPGj6BWoPQ==" TotalPrice="ZAR1407.44" BasePrice="ZAR100.00" ApproximateTotalPrice="ZAR1407.44" ApproximateBasePrice="ZAR100.00" ProviderCode="1G">
- <FareInfo Amount="ZAR50.00" EffectiveDate="2016-03-01T16:53:00.000+02:00" Destination="JNB" Origin="DUR" PassengerTypeCode="ADT" FareBasis="O28DAYAP" Key="aZbDAq1tTfK63q1mHX58Yg==">
  <Endorsement Value="NONENDO/VALID BA/MN ONLY" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <FareRuleKey FareInfoRef="aZbDAq1tTfK63q1mHX58Yg==" ProviderCode="1G">6UUVoSldxwjm2Co3N/K8ssbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA2IQx5q5md9p1w3VjODTYW4dgq3BJaBCycgezo68ChsgVCulqMwbpNaoeD9AgiQWj+IBvuZIIrlTiJQrIxBCtsGco2yDRdskdxll6FxyIC6cYuAWfcH2w92IEQfz1U0L75Pz+Q9t+2+F/qkI/gqpCJfqkp0FEw0raOCbZ1nsUQQBgL7jYTg5eNC+SV4TcnjgDoq+cJFUBzrily5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA3N5jV9Rrzq8txHW6jzw2UbAQJCzzE4cySMQ0kdd7e84+Y8K8GQMC9q06tmwHLN6+D/T+J3qMrQF</FareRuleKey> 
  </FareInfo>
- <FareInfo Amount="ZAR50.00" EffectiveDate="2016-03-01T16:53:00.000+02:00" Destination="DUR" Origin="JNB" PassengerTypeCode="ADT" FareBasis="O28DAYAP" Key="Y7Pk367nSne1z3HoEnWiqw==">
  <Endorsement Value="NONENDO/VALID BA/MN ONLY" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <FareRuleKey FareInfoRef="Y7Pk367nSne1z3HoEnWiqw==" ProviderCode="1G">6UUVoSldxwjm2Co3N/K8ssbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA2IQx5q5md9p1w3VjODTYW6Hu0t7dcGE80/LgBP9lW0KffAIozri2ACoeD9AgiQWj+IBvuZIIrlTiJQrIxBCtsGOKSxwKtCwvBll6FxyIC6cYuAWfcH2w92IEQfz1U0L75Pz+Q9t+2+F/qkI/gqpCJfvWpSmZkrE0eCbZ1nsUQQBXFYZySjRTG2+SV4TcnjgDoq+cJFUBzrily5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA3N5jV9Rrzq8txHW6jzw2UbAQJCzzE4cySMQ0kdd7e84+Y8K8GQMC9q06tmwHLN6+D/T+J3qMrQF</FareRuleKey> 
  </FareInfo>
  <BookingInfo BookingCode="O" CabinClass="Economy" FareInfoRef="aZbDAq1tTfK63q1mHX58Yg==" SegmentRef="mHAtFNG1SFOximL2zsV7cA==" /> 
  <BookingInfo BookingCode="O" CabinClass="Economy" FareInfoRef="Y7Pk367nSne1z3HoEnWiqw==" SegmentRef="RrtCvet7SKS8cJTS5qzgCg==" /> 
  <TaxInfo Key="5rNX7/SZSaCGZS0s56nrCQ==" Category="EV" Amount="ZAR37.44" /> 
  <TaxInfo Key="RdbImAktQ26IrJA/dIq83A==" Category="UM" Amount="ZAR48.00" /> 
  <TaxInfo Key="kWZQo4KEQ6yDsA2qgzwkPg==" Category="ZA" Amount="ZAR254.00" /> 
  <TaxInfo Key="mg7TfaGKTo6fokkO7e2wBQ==" Category="ZV" Amount="ZAR14.00" /> 
  <TaxInfo Key="eAq654D7RAKO5u1zkgvdkQ==" Category="YQ" Amount="ZAR954.00" /> 
  <FareCalc>DUR BA JNB 50.00O28DAYAP BA DUR 50.00O28DAYAP ZAR100.00END</FareCalc> 
  <PassengerType Code="ADT" /> 
- <AirPricingModifiers>
  <ManualFareAdjustment AppliedOn="Base" AdjustmentType="Amount" Value="40" PassengerRef="gr8AVWGCR064r57Jt0+8bA==" /> 
  </AirPricingModifiers>
- <BaggageAllowances>
- <BaggageAllowanceInfo Origin="DUR" Destination="JNB" Carrier="BA" TravelerType="ADT">
- <URLInfo>
  <URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG</URL> 
  </URLInfo>
- <TextInfo>
  <Text>1P</Text> 
  <Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</Text> 
  </TextInfo>
- <BagDetails ApplicableBags="1stChecked" BasePrice="ZAR0.00" ApproximateBasePrice="ZAR0.00" TotalPrice="ZAR0.00" ApproximateTotalPrice="ZAR0.00">
- <BaggageRestriction>
- <TextInfo>
  <Text>UPTO50LB/23KG AND UPTO81LI/208LCM</Text> 
  </TextInfo>
  </BaggageRestriction>
  </BagDetails>
- <BagDetails ApplicableBags="2ndChecked" BasePrice="ZAR385.00" ApproximateBasePrice="ZAR385.00" TotalPrice="ZAR385.00" ApproximateTotalPrice="ZAR385.00">
- <BaggageRestriction>
- <TextInfo>
  <Text>UPTO50LB/23KG AND UPTO81LI/208LCM</Text> 
  </TextInfo>
  </BaggageRestriction>
  </BagDetails>
  </BaggageAllowanceInfo>
- <BaggageAllowanceInfo Origin="JNB" Destination="DUR" Carrier="BA" TravelerType="ADT">
- <URLInfo>
  <URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG</URL> 
  </URLInfo>
- <TextInfo>
  <Text>1P</Text> 
  <Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</Text> 
  </TextInfo>
- <BagDetails ApplicableBags="1stChecked" BasePrice="ZAR0.00" ApproximateBasePrice="ZAR0.00" TotalPrice="ZAR0.00" ApproximateTotalPrice="ZAR0.00">
- <BaggageRestriction>
- <TextInfo>
  <Text>UPTO50LB/23KG AND UPTO81LI/208LCM</Text> 
  </TextInfo>
  </BaggageRestriction>
  </BagDetails>
- <BagDetails ApplicableBags="2ndChecked" BasePrice="ZAR385.00" ApproximateBasePrice="ZAR385.00" TotalPrice="ZAR385.00" ApproximateTotalPrice="ZAR385.00">
- <BaggageRestriction>
- <TextInfo>
  <Text>UPTO50LB/23KG AND UPTO81LI/208LCM</Text> 
  </TextInfo>
  </BaggageRestriction>
  </BagDetails>
  </BaggageAllowanceInfo>
  <CarryOnAllowanceInfo Origin="DUR" Destination="JNB" Carrier="BA" /> 
  <CarryOnAllowanceInfo Origin="JNB" Destination="DUR" Carrier="BA" /> 
- <EmbargoInfo Origin="DUR" Destination="JNB" Carrier="BA">
- <URLInfo>
  <URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG</URL> 
  </URLInfo>
- <TextInfo>
  <Text>888</Text> 
  </TextInfo>
  </EmbargoInfo>
- <EmbargoInfo Origin="JNB" Destination="DUR" Carrier="BA">
- <URLInfo>
  <URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG</URL> 
  </URLInfo>
- <TextInfo>
  <Text>888</Text> 
  </TextInfo>
  </EmbargoInfo>
  </BaggageAllowances>
  </AirPricingInfo>
  </AirPricingSolution>
  <ActionStatus Type="TAW" TicketDate="2016-03-02T23:59:00.000+02:00" ProviderCode="1G" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <FormOfPayment Type="Cash" Key="jwt2mcK1Qp27I2xfpcCtAw==" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  </AirCreateReservationReq>
NirandaG commented 8 years ago

Hi dbongs,

I am able to pass the email ID in AirCreate reservation request.

/com:BookingTraveler 6UUVoSldxwjm2Co3N/K8ssbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA2IQx5q5md9p1w3VjODTYW4dgq3BJaBCycgezo68ChsgVCulqMwbpNaoeD9AgiQWj+IBvuZIIrlTiJQrIxBCtsGco2yDRdskdxll6FxyIC6cYuAWfcH2w92IEQfz1U0L75Pz+Q9t+2+F/qkI/gqpCJfqkp0FEw0raOCbZ1nsUQQBgL7jYTg5eNC+SV4TcnjgDoq+cJFUBzrily5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA3N5jV9Rrzq8txHW6jzw2UbAQJCzzE4cySMQ0kdd7e84+Y8K8GQMC9q06tmwHLN6+D/T+J3qMrQF/air:FareRuleKey /air:FareInfo 6UUVoSldxwjm2Co3N/K8ssbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA2IQx5q5md9p1w3VjODTYW6Hu0t7dcGE80/LgBP9lW0KffAIozri2ACoeD9AgiQWj+IBvuZIIrlTiJQrIxBCtsGOKSxwKtCwvBll6FxyIC6cYuAWfcH2w92IEQfz1U0L75Pz+Q9t+2+F/qkI/gqpCJfvWpSmZkrE0eCbZ1nsUQQBXFYZySjRTG2+SV4TcnjgDoq+cJFUBzrily5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA3N5jV9Rrzq8txHW6jzw2UbAQJCzzE4cySMQ0kdd7e84+Y8K8GQMC9q06tmwHLN6+D/T+J3qMrQF/air:FareRuleKey /air:FareInfo air:FareCalcDUR BA JNB 50.00O28DAYAP BA DUR 50.00O28DAYAP ZAR100.00END/air:FareCalc air:AirPricingModifiers /air:AirPricingModifiers air:BaggageAllowances air:URLInfo air:URLMYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG/air:URL /air:URLInfo air:TextInfo air:Text1P/air:Text air:TextBAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC./air:Text /air:TextInfo air:BaggageRestriction air:TextInfo air:TextUPTO50LB/23KG AND UPTO81LI/208LCM/air:Text /air:TextInfo /air:BaggageRestriction /air:BagDetails air:BaggageRestriction air:TextInfo air:TextUPTO50LB/23KG AND UPTO81LI/208LCM/air:Text /air:TextInfo /air:BaggageRestriction /air:BagDetails /air:BaggageAllowanceInfo air:URLInfo air:URLMYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG/air:URL /air:URLInfo air:TextInfo air:Text1P/air:Text air:TextBAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC./air:Text /air:TextInfo air:BaggageRestriction air:TextInfo air:TextUPTO50LB/23KG AND UPTO81LI/208LCM/air:Text /air:TextInfo /air:BaggageRestriction /air:BagDetails air:BaggageRestriction air:TextInfo air:TextUPTO50LB/23KG AND UPTO81LI/208LCM/air:Text /air:TextInfo /air:BaggageRestriction /air:BagDetails /air:BaggageAllowanceInfo air:URLInfo air:URLMYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG/air:URL /air:URLInfo air:TextInfo air:Text888/air:Text /air:TextInfo /air:EmbargoInfo air:URLInfo air:URLMYTRIPANDMORE.COM/BAGGAGEDETAILSBA.BAGG/air:URL /air:URLInfo air:TextInfo air:Text888/air:Text /air:TextInfo /air:EmbargoInfo /air:BaggageAllowances /air:AirPricingInfo /air:AirPricingSolution /univ:AirCreateReservationReq Only error message I receive is due to the availability of the seats. air:ErrorMessage_0 AVAIL/WL CLOSED_/air:ErrorMessage Please give a try with the above request with later flight and let me know how it goes. Thank you, Niranda
dbongs commented 8 years ago

ok now it works. how do i request for our live cred?

vivekjyotipramanik commented 8 years ago

Hi dbongs,

To receive Production Credentials you have to raise a Certification Ticket in the ORS. Once certified you will receive the live creentials. Please let me know if you need the ORS link. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

i do not have the link, please provide.

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Please find below the link. To access the link you need to be on contract signed with Travelport. If your customer already has a contract with Travelport, then he already should have access to the site. If your customer is unable to login to the site, please your contact Travelport Account Manager. In case you or your customer does not have a contract with Travelport, Please provide your details about the company, Contact number and we will have someone contact you regarding the Contract procedure. Please let me know how it goes. Thanks.

https://support.travelport.com/tdssupport/

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

we did sign the contract and have access to link above. but i cannot see were to request for the live cred

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Please raise a certification request. Select Product as uAPI and please provide your organization name and user in exact fields. Please request for certification. Once you are certified you can ask for live creds. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

that what i see when i login to suppot

fireshot capture 26 - travelport product suppo_ - https___support travelport com_tdssupport_main asp

vivekjyotipramanik commented 8 years ago

Hi dbongs,

You have to create a new user as you do not have any existing user. Please create a user and then you will be able to create a request for certification. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

is this the correct one?

fireshot capture 27 - travelport product support - new reque_ - https___support travelport com_tds

vivekjyotipramanik commented 8 years ago

Hi dbongs,

This is the correct page. Please select "Certification" from "Request Category" and please fill up the required fields. Please provide the details about your product. An API Support Specialist will pick it up and will start the certification process. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

ther is no Certification in the category dropdown

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Please raise it with 'Access/Credentials Problem'. In the description you can write that you need live credentials and requires live certification. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

please assist, i have requested for the live cred 3days ago but still no answer. our client ID is salienttrto

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Please provide me the ticket number so that I can check. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

check for 170607

dbongs commented 8 years ago

or 221021

vivekjyotipramanik commented 8 years ago

Hi dbongs,

The ticket 221021 is closed as there is already 170607 opened for certification request. Please update the ticket with more details like what you are asking to certify and also update the ticket about requiring live creds. An API support person will pick it up as soon as possible. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

i have been updating my ticket but no technician has been assign till today. Please assist. my last ticket number is : 170607

vivekjyotipramanik commented 8 years ago

Hi dbongs,

The API Support team will pick up the ticket based soon. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

i have updated my endpoint prefix as per technicial request but i get the following error.

EndPoint: https://twsprofiler.travelport.com/Service/Default.ashx/

Error: The HTTP request was forbidden with client authentication scheme 'Basic'.

vivekjyotipramanik commented 8 years ago

Hi dbongs,

The Endpoint should be https://twsprofiler.travelport.com/Service/Default.ashx/AirService for Air transactions. Please add the Service name accordingly to the end of the URL. Like for Air, it should be AirService, for Hotel it should be HotelService. For Universal, it should be UniversalService.

Please let me me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi, i do add the services but same error.

public static string ENDPOINT_PREFIX = "https://twsprofiler.travelport.com/Service/Default.ashx/"; static public String SYSTEM_ENDPOINT = ENDPOINT_PREFIX + "SystemService"; static public String AIR_ENDPOINT = ENDPOINT_PREFIX + "AirService"; static public String HOTEL_ENDPOINT = ENDPOINT_PREFIX + "HotelService"; static public String VEHICLE_ENDPOINT = ENDPOINT_PREFIX + "VehicleService"; static public String UTIL_ENDPOINT = ENDPOINT_PREFIX + "UtilService";

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Could you please confirm if the requests are running fine with the PreProduction Endpoint URL. Also, Could you please confirm if you are using trial credentials or PreProduction credentials. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

with Preproduction end point everything works well. the only i have change is the profiler endpoint then it does not work.

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Could you please send me the credentials you are using in my mail and I can try it from my side to check the issue. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

what is your mailID?

vivekjyotipramanik commented 8 years ago

Hi dbongs,

It is vivek.pramanik@travelport.com. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

I have sent the email.

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Let me check if I can the issue, I can successfully run transactions using the credentials using the new endpoint. I will provide an update soon. Thanks.

Thanks & Regards Vivekjyoti Pramanik

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Just to confirm, you are using c# to run uAPI transactions right! Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

yes

vivekjyotipramanik commented 8 years ago

Hi dbongs,

I have checked with the C# code and twsprofiler endpoint is working fine with the code. I have checked Air transactions and they are working fine. Could you please try adding proxyAuthenticationScheme="Basic" in the app.config, customBinding, httpsTransport. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

my customBinding looks like below but still no luck.

vivekjyotipramanik commented 8 years ago

Hi dbongs,

I am using the below customBinding and it is working fine for me. Could you please add proxyAuthenticationScheme="Basic". Please let me know how it goes. Thanks.

<customBinding>
        <binding name="CustomServiceBinding" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:03:00">
          <textMessageEncoding messageVersion="Soap11" writeEncoding="utf-8">
            <readerQuotas maxDepth="32" maxStringContentLength="2147483646"
              maxArrayLength="2147483646" maxBytesPerRead="2147483646" maxNameTableCharCount="2147483646" />            
          </textMessageEncoding>
          <httpsTransport maxBufferPoolSize="524288" maxReceivedMessageSize="2147483646"
            allowCookies="false" authenticationScheme="Basic" bypassProxyOnLocal="false"
            hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483646"
            transferMode="Buffered" useDefaultWebProxy="true" proxyAuthenticationScheme="Basic" keepAliveEnabled="false">            
          </httpsTransport>            
        </binding>
      </customBinding>

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek,

i have shared my project with you please have a look since i cannot solve the error above.

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Could you please confirm if you shared the code over mail. I have not received any mails from you with the code. Please open an ORS ticket and attach the code there. Thanks.

Thanks & Regards Vivekjyoti Pramanik

vivekjyotipramanik commented 8 years ago

Hi dbongs,

Could you please confirm if you are still facing the issue with the twsprofiler URL. Please open an ORS ticket and attach the code there. I will work on the code once received. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Hi Vivek, i have shared the code on server share.

https://www.dropbox.com/s/8hsyemtsvzpn79v/SalientTravel.zip?dl=0

NirandaG commented 8 years ago

Hi dbongs,

I have received the code. Will check the issue and keep you updated.

Thanx, B.Rgds, Niranda

vivekjyotipramanik commented 8 years ago

Hi dbongs,

We have found the problem and I have fixed the issue. the problem was, instead of using Base64 encoded Credentials you were sending credentials without any encoding. While the twsprofiler expects credentials as base 64 encoded. Please find below the code to fix the issue. Please replace this in the file Helper.cs, method ReturnHttpHeader. Please let me know how it goes. Thanks.

    public static Dictionary<string, string> ReturnHttpHeader()
    {
        var httpHeaders = new Dictionary<string, string>();
        //httpHeaders.Add("Username", Helper.RetrunUsername());
        //httpHeaders.Add("Password", Helper.ReturnPassword());

        httpHeaders.Add("Authorization","Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(Helper.RetrunUsername() + ":" + Helper.ReturnPassword())));
        httpHeaders.Add("Accept-Encoding", "gzip");
        /*httpHeaders.Add("SOAPAction", "");
        httpHeaders.Add("Host", "twsprofiler.travelport.com");
        httpHeaders.Add("Connection", "Keep-Alive");
        httpHeaders.Add("Content-Type", "text/xml;charset=UTF-8");
        httpHeaders.Add("POST", "");*/

        return httpHeaders;
    }

Thanks & Regards Vivekjyoti Pramanik

dbongs commented 8 years ago

Thank you so much Vivek.

dbongs commented 8 years ago

Hi Vivek,

works perfect. thank you very much.

dbongs commented 8 years ago

Hi Vivek,

i am getting the following error when making air booking.

Error: Host PNR 1G:PWPK1A has been created - Please retrieve PNR and check the booking and report issue immediately

Request:

<?xml version="1.0" encoding="utf-16" ?> 
- <AirCreateReservationReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="P7023658" RetainReservation="Both">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
- <BookingTraveler Key="qTBzfUPBFUi9Zsz4VRrowQ==" TravelerType="ADT" Gender="M" xmlns="http://www.travelport.com/schema/common_v29_0">
  <BookingTravelerName First="Bongani" Last="Fankomo" /> 
  <PhoneNumber Number="0794866362" /> 
  <Email Type="Home" EmailID="brettfankomo@gmail.com" /> 
  </BookingTraveler>
- <AirPricingSolution Key="jcY+f4WRRbWIhGAXdx2Bog==" TotalPrice="ZAR1089.32" BasePrice="ZAR390.00" ApproximateTotalPrice="ZAR1089.32" ApproximateBasePrice="ZAR390.00" Taxes="ZAR699.32" ApproximateTaxes="ZAR699.32" xmlns="http://www.travelport.com/schema/air_v29_0">
  <AirSegment Key="OchPq0v5ScW6lyCsYXpVLw==" Equipment="ER3" AvailabilitySource="S" ClassOfService="L" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked" Group="0" Carrier="SA" FlightNumber="8848" Origin="MQP" Destination="JNB" DepartureTime="2016-03-31T18:25:00.000+02:00" ArrivalTime="2016-03-31T19:20:00.000+02:00" FlightTime="55" TravelTime="55" Distance="187" ProviderCode="1G" ParticipantLevel="Secure Sell" PolledAvailabilityOption="O and D cache or polled status used with different local status" /> 
- <AirPricingInfo LatestTicketingTime="2016-03-31T23:59:00.000+02:00" PricingMethod="Manual" Taxes="ZAR699.32" Key="i8Twst6GRM2kxKeHAkigVg==" TotalPrice="ZAR1089.32" BasePrice="ZAR390.00" ApproximateTotalPrice="ZAR1089.32" ApproximateBasePrice="ZAR390.00" ProviderCode="1G">
- <FareInfo Amount="ZAR390.00" EffectiveDate="2016-03-31T15:58:00.000+02:00" Destination="JNB" Origin="MQP" PassengerTypeCode="ADT" FareBasis="LOW4Z" Key="yywyrF/oSAereu1Q43isyw==">
  <Endorsement Value="NONEND" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <Endorsement Value="CXD/CHG PENALTY APPY" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <FareRuleKey FareInfoRef="yywyrF/oSAereu1Q43isyw==" ProviderCode="1G">6UUVoSldxwhmUZJUDbTl9cbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovAxj/SWoiLBMl1w3VjODTYW4dgq3BJaBCydbgslKuAFn0Qu0ZscBMSQ4kZah7ruZejTnbwg21KmvANY5ocFI1n6CF/oTXxxF6MeJYtF79PC3YfoLT9JoAKrMtD5ICYoj/MKgF+B/z90Iq65nZrmYInGDg2BMJ0qOmdTyy/Q52QOiIbcCKGJ+NQ6blr/HvMTY1DfwBShF29N4Sv4Xvb2u1Qx+/he9va7VDH7+F729rtUMfv4Xvb2u1Qx8Qxibp/OJehpo2LrM59tO1jp8ZENljzx72lVAJ3nO/P+tBPsfyrYt5cgHiIVSbj9t0Ep8zGvqjtXnDoD+2kN/N</FareRuleKey> 
  </FareInfo>
  <BookingInfo BookingCode="L" CabinClass="Economy" FareInfoRef="yywyrF/oSAereu1Q43isyw==" SegmentRef="OchPq0v5ScW6lyCsYXpVLw==" /> 
  <TaxInfo Key="ap368RVpQS+OVLdyPSGIcw==" Category="EV" Amount="ZAR18.72" /> 
  <TaxInfo Key="g+g+IHzBSN2ZeZyVHbRyaw==" Category="ZA" Amount="ZAR149.00" /> 
  <TaxInfo Key="QERqmB0zSxO05lpyzNVInQ==" Category="ZV" Amount="ZAR54.60" /> 
  <TaxInfo Key="dk40xSxsTCqPimkpx9TstQ==" Category="YQ" Amount="ZAR477.00" /> 
  <FareCalc>NLP SA JNB 390.00LOW4Z ZAR390.00END</FareCalc> 
  <PassengerType Code="ADT" /> 
- <AirPricingModifiers>
  <ManualFareAdjustment AppliedOn="Base" AdjustmentType="Amount" Value="40" PassengerRef="gr8AVWGCR064r57Jt0+8bA==" /> 
  </AirPricingModifiers>
- <BaggageAllowances>
- <BaggageAllowanceInfo Origin="NLP" Destination="JNB" Carrier="SA" TravelerType="ADT">
- <URLInfo>
  <URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSSA.BAGG</URL> 
  </URLInfo>
- <TextInfo>
  <Text>20K</Text> 
  <Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</Text> 
  </TextInfo>
- <BagDetails ApplicableBags="1stChecked">
- <BaggageRestriction>
- <TextInfo>
  <Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</Text> 
  </TextInfo>
  </BaggageRestriction>
  </BagDetails>
- <BagDetails ApplicableBags="2ndChecked">
- <BaggageRestriction>
- <TextInfo>
  <Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</Text> 
  </TextInfo>
  </BaggageRestriction>
  </BagDetails>
  </BaggageAllowanceInfo>
  <CarryOnAllowanceInfo Origin="NLP" Destination="JNB" Carrier="SA" /> 
  </BaggageAllowances>
  </AirPricingInfo>
  </AirPricingSolution>
  <ActionStatus Type="TAW" TicketDate="2016-03-31T23:59:00.000+02:00" ProviderCode="1G" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  <FormOfPayment Type="Cash" Key="jwt2mcK1Qp27I2xfpcCtAw==" xmlns="http://www.travelport.com/schema/common_v29_0" /> 
  </AirCreateReservationReq>
vivekjyotipramanik commented 8 years ago

Hi dbongs,

Could you please provide the AirCreateReservationRsp xml as well. We need the transaction id to check the exact issue. Thanks.

Thanks & Regards Vivekjyoti Pramanik