Closed szrz92 closed 8 years ago
Hi SyedZainZaidi,
The reason why the request fails is you have not define the XML request with the correct namespaces. Please have a look on the below working request. I have done the AirPrice first and from the response of that I am sending to AirCreate. It is always recommended to do the AirPrice and get the AirPricingSolution and pass to AirCreate to ensure the fares are valid for the itinerary.
Sorry since the sample does not gets attached correctly.
Please find the attached sample for AirCreate.
Thanks a lot it worked :D
Hello I am sending AirCreateReservationReq as
string requestText = string.Format(CultureInfo.InvariantCulture, "<AirCreateReservationReq xmlns:air='http://www.travelport.com/schema/air_v26_0' TraceId='d16ff6de-9808-46f8-be95-7fe5faf3f1c6' TargetBranch='P7059888'><BillingPointOfSaleInfo xmlns='http://www.travelport.com/schema/common_v26_0' OriginApplication='UAPI'/>"+ "<BookingTraveler>" + "<BookingTravelerName First='Zain' Last='Raza'/><PhoneNumber Number='03415010849'/><Email EmailID='zain.raza@sonyatravels.net'/>"+ "<SSR Type='DOCS'/>"+ "<Address><AddressName>Sonya Travels</AddressName><Street>Banni Gala</Street><City>Islamabad</City><State>Pakistan</State><PostalCode>44000</PostalCode><Country>Pakistan</Country></Address>"+ "</BookingTraveler>"+ "<FormOfPayment xmlns='http://www.travelport.com/schema/common_v26_0' Key='jwt2mcK1Qp27I2xfpcCtAw==' Type='Cash'/>"+ "<AirPricingSolution Key='wCDOpNUMTdWPy0xfLQfELQ==' TotalPrice='GBP510.60' BasePrice='PKR17600' ApproximateTotalPrice='GBP510.60' ApproximateBasePrice='GBP128.00' EquivalentBasePrice='GBP128.00' Taxes='GBP382.60' ApproximateTaxes='GBP382.60'><Journey TravelTime='P0DT7H25M0S'><AirSegmentRef Key='2oko/bJzTtqrK88gGdizlg=='/><AirSegmentRef Key='I77A/QDVRSiyMnPDvz5W5g=='/></Journey><Journey TravelTime='P0DT13H0M0S'><AirSegmentRef Key='i2Y0aCqyQEO6Zl5A3JeqOg=='/><AirSegmentRef Key='0ogSgN7JSMG6KnQn80kFcw=='/></Journey><LegRef Key='JIcF5tW+QUSW+r3EyC/Wgw=='/><LegRef Key='VKg3kWENQhS71QNQr3CIEA=='/><AirPricingInfo Key='l1JuyyahRhOTC7MUDewV8g==' TotalPrice='GBP255.30' BasePrice='PKR8800' ApproximateTotalPrice='GBP255.30' ApproximateBasePrice='GBP64.00' EquivalentBasePrice='GBP64.00' Taxes='GBP191.30' ApproximateTaxes='GBP191.30' LatestTicketingTime='2016-08-25T23:59:00.000+01:00' PricingMethod='Guaranteed' Refundable='true' ETicketability='Yes' PlatingCarrier='WY' ProviderCode='1G'><FareInfoRef Key='SvWq2sRpSKadENDl2Gvy1w=='/><FareInfoRef Key='/d/KaPeARmixd2gMNMpL9A=='/><BookingInfo BookingCode='U' CabinClass='Economy' FareInfoRef='SvWq2sRpSKadENDl2Gvy1w==' SegmentRef='2oko/bJzTtqrK88gGdizlg=='/><BookingInfo BookingCode='U' CabinClass='Economy' FareInfoRef='SvWq2sRpSKadENDl2Gvy1w==' SegmentRef='I77A/QDVRSiyMnPDvz5W5g=='/><BookingInfo BookingCode='U' CabinClass='Economy' FareInfoRef='/d/KaPeARmixd2gMNMpL9A==' SegmentRef='i2Y0aCqyQEO6Zl5A3JeqOg=='/><BookingInfo BookingCode='U' CabinClass='Economy' FareInfoRef='/d/KaPeARmixd2gMNMpL9A==' SegmentRef='0ogSgN7JSMG6KnQn80kFcw=='/><TaxInfo Category='RG' Amount='GBP36.10'/><TaxInfo Category='SP' Amount='GBP10.80'/><TaxInfo Category='XZ' Amount='GBP7.40'/><TaxInfo Category='YD' Amount='GBP7.40'/><TaxInfo Category='OM' Amount='GBP4.00'/><TaxInfo Category='AE' Amount='GBP15.40'/><TaxInfo Category='F6' Amount='GBP7.20'/><TaxInfo Category='TP' Amount='GBP1.00'/><TaxInfo Category='ZR' Amount='GBP1.00'/><TaxInfo Category='YQ' Amount='GBP101.00'/><FareCalc>ISB WY X/MCT WY DXB 42.12USPT3MPK WY X/MCT WY ISB 42.12USPT3MPK NUC84.24END ROE104.452</FareCalc><PassengerType Code='ADT' Age='40'/><PassengerType Code='ADT' Age='40'/></AirPricingInfo><Connection SegmentIndex='0'/><Connection SegmentIndex='2'/></AirPricingSolution>"+ "<ActionStatus xmlns='http://www.travelport.com/schema/common_v26_0' Type='TAW'/>"+ "</AirCreateReservationReq>"
and i am getting response as fault instead of pnr `
1000