Open IdrisHanafi opened 7 years ago
Hi IdrisHanafi,
The reason the results are not returning is, there are no fares for the city pair you are requesting. Please find the below request with successful response.
``xml
Hi @NirandaG
I have tested the exact city pairs on your demo site which gave results. The XML request your site has requested is:
<LowFareSearchReq xmlns="http://www.travelport.com/schema/air_v36_0" TraceId="deaacd5a-9c80-40be-a2b8-33254f02ec00" TargetBranch="P1875761" ReturnUpsellFare="true">
<BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v36_0" OriginApplication="uAPI" />
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="DTW" PreferCity="true" />
</SearchOrigin>
<SearchDestination>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="JRB" PreferCity="true" />
</SearchDestination>
<SearchDepTime PreferredTime="2016-12-20" />
</SearchAirLeg>
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="JRB" PreferCity="true" />
</SearchOrigin>
<SearchDestination>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="DTW" PreferCity="true" />
</SearchDestination>
<SearchDepTime PreferredTime="2016-12-23" />
</SearchAirLeg>
<AirSearchModifiers>
<PreferredProviders>
<Provider xmlns="http://www.travelport.com/schema/common_v36_0" Code="1G" />
</PreferredProviders>
</AirSearchModifiers>
<SearchPassenger xmlns="http://www.travelport.com/schema/common_v36_0" Code="ADT" Age="40" DOB="1976-12-15" />
<AirPricingModifiers FaresIndicator="PublicFaresOnly">
<AccountCodes>
<AccountCode xmlns="http://www.travelport.com/schema/common_v36_0" Code="-" />
</AccountCodes>
</AirPricingModifiers>
</LowFareSearchReq>
Which I then tested locally and it gave me the following error:
<?xml version="1.0" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<SOAP-ENV:faultcode>400</SOAP-ENV:faultcode>
<SOAP-ENV:faultstring>TPGateway - Request data not found - Request ignored - service name = AirService username = Universal API/uAPI5446387789-46f8ce07</SOAP-ENV:faultstring>
<SOAP-ENV:faultactor> </SOAP-ENV:faultactor>
<SOAP-ENV:detail>TPGateway - Request data not found - Request ignored - service name = AirService username = Universal API/uAPI5446387789-46f8ce07</SOAP-ENV:detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Are there any reasons for this? Are the requests your site uses not exactly the ones it display?
Hi IdrisHanafi,
Could you please add the Soap envelope and body before and after the request. Please let me know how it goes. Thanks.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
</soapenv:Body>
</soapenv:Envelope>
Thanks & Regards Vivekjyoti Pramanik
Hi @vivekjyotipramanik
That is what I initially ran it with and it still gave me the error:
<?xml version="1.0" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<SOAP-ENV:faultcode>400</SOAP-ENV:faultcode>
<SOAP-ENV:faultstring>TPGateway - Request data not found - Request ignored - service name = AirService username = Universal API/uAPI5446387789-46f8ce07</SOAP-ENV:faultstring>
<SOAP-ENV:faultactor> </SOAP-ENV:faultactor>
<SOAP-ENV:detail>TPGateway - Request data not found - Request ignored - service name = AirService username = Universal API/uAPI5446387789-46f8ce07</SOAP-ENV:detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I also sent this request to the URL: https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService
Are there any possible reasons why the demo site returns flight while ran locally it doesn't?
Hi IdrisHanafi,
This is something unusual. The same request working well locally in my end not. I am not checking on the Demo site. Could you please send me the full request you are passing on?
Thank you, B.Rgds, Niranda
Hi @NirandaG
I am trying to run:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<LowFareSearchReq xmlns="http://www.travelport.com/schema/air_v36_0" TraceId="801b5521-ac8a-4ce9-81a0-917ca4d7dceb" TargetBranch="P7015242" ReturnUpsellFare="true">
<BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v36_0" OriginApplication="uAPI" />
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="DTW" PreferCity="true" />
</SearchOrigin>
<SearchDestination>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="JRB" PreferCity="true" />
</SearchDestination>
<SearchDepTime PreferredTime="2016-12-20" />
</SearchAirLeg>
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="JRB" PreferCity="true" />
</SearchOrigin>
<SearchDestination>
<CityOrAirport xmlns="http://www.travelport.com/schema/common_v36_0" Code="DTW" PreferCity="true" />
</SearchDestination>
<SearchDepTime PreferredTime="2016-12-23" />
</SearchAirLeg>
<AirSearchModifiers>
<PreferredProviders>
<Provider xmlns="http://www.travelport.com/schema/common_v36_0" Code="1G" />
</PreferredProviders>
</AirSearchModifiers>
<SearchPassenger xmlns="http://www.travelport.com/schema/common_v36_0" Code="ADT" Age="40" DOB="1976-12-15" />
<AirPricingModifiers FaresIndicator="PublicFaresOnly">
<AccountCodes>
<AccountCode xmlns="http://www.travelport.com/schema/common_v36_0" Code="-" />
</AccountCodes>
</AirPricingModifiers>
</LowFareSearchReq>
</air:LowFareSearchReq>
</soapenv:Body>
</soapenv:Envelope>
The URL i am sending this request to is: https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService
.
Also my account is still under the trial version. Could this be the reason? If you want to test it out, my user name and password is Universal API/uAPI5446387789-46f8ce07
and YdsN3hXxt4neNr2gCJRPjRs6f
, respectively.
Hi IdrisHanafi,
The request being sent had an extra tag which was causing the issue. Please find below the corrected request. Please let me know how it goes. Thanks.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<LowFareSearchReq TraceId="801b5521-ac8a-4ce9-81a0-917ca4d7dceb" TargetBranch="P7015242" ReturnUpsellFare="true" xmlns="http://www.travelport.com/schema/air_v36_0">
<BillingPointOfSaleInfo OriginApplication="uAPI" xmlns="http://www.travelport.com/schema/common_v36_0"/>
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport Code="DTW" PreferCity="true" xmlns="http://www.travelport.com/schema/common_v36_0"/>
</SearchOrigin>
<SearchDestination>
<CityOrAirport Code="JRB" PreferCity="true" xmlns="http://www.travelport.com/schema/common_v36_0"/>
</SearchDestination>
<SearchDepTime PreferredTime="2016-12-20"/>
</SearchAirLeg>
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport Code="JRB" PreferCity="true" xmlns="http://www.travelport.com/schema/common_v36_0"/>
</SearchOrigin>
<SearchDestination>
<CityOrAirport Code="DTW" PreferCity="true" xmlns="http://www.travelport.com/schema/common_v36_0"/>
</SearchDestination>
<SearchDepTime PreferredTime="2016-12-23"/>
</SearchAirLeg>
<AirSearchModifiers>
<PreferredProviders>
<Provider Code="1G" xmlns="http://www.travelport.com/schema/common_v36_0"/>
</PreferredProviders>
</AirSearchModifiers>
<SearchPassenger Code="ADT" Age="40" DOB="1976-12-15" xmlns="http://www.travelport.com/schema/common_v36_0"/>
<AirPricingModifiers FaresIndicator="PublicFaresOnly">
<AccountCodes>
<AccountCode Code="-" xmlns="http://www.travelport.com/schema/common_v36_0"/>
</AccountCodes>
</AirPricingModifiers>
</LowFareSearchReq>
</soapenv:Body>
</soapenv:Envelope>
Thanks & Regards Vivekjyoti Pramanik
I am currently trying to run this query:
But I get this error:
However when I run this exact query in your demo site it returns flights. So then I copied the exact same XML request and ran it locally, I get this error:
Please let me know where I went wrong and thanks in advance.
Also, the URL I am sending my request to is
https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService
and my user/pass areUniversal API/uAPI5446387789-46f8ce07
andYdsN3hXxt4neNr2gCJRPjRs6f
, respectively. If needed, my branch code is P7015242. Lastly, I am still using the demo version so the branch, user, and pass are temporary.