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

AirPorts #76

Open anoopkp opened 8 years ago

anoopkp commented 8 years ago

Dea Vivek,

As per your instruction, I have created the request for "ReferenceDataRetrieveReq" for "AirPort".  But I am getting an Error, Due to incorrect Values in REquest. I have attached the "ReferenceDataRetrieveReq" XML file here for your review and here attached the Error Message.

Error : Client found response content type of 'text/html', but expected 'text/xml'.\r\nThe request failed with the error message:\r\n--\r\nError 404: SRVE0295E: Error reported: 404\n\r\n--

Thank You

Anoop Kumar.K.P MindBridge(SITN) ReferenceDataRetrieveReq.txt

vivekjyotipramanik commented 8 years ago

Hi Anoop,

Please use the soap envelope, Please find below the request. Also, Please use the correct Endpoint. Could you please confirm the endpoint you are using.


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:util="http://www.travelport.com/schema/util_v37_0" xmlns:com="http://www.travelport.com/schema/common_v37_0">
   <soapenv:Header/>
   <soapenv:Body>
      <util:ReferenceDataRetrieveReq TraceId="trace" AuthorizedBy="user" TargetBranch="TRGT_BRCH" TypeCode="Airport">
         <com:BillingPointOfSaleInfo OriginApplication="uAPI"/>
         <util:ReferenceDataSearchModifiers MaxResults="20000" StartFromResult="0" ProviderCode="1G"/>
      </util:ReferenceDataRetrieveReq>
   </soapenv:Body>
</soapenv:Envelope>

Thanks & Regards Vivekjyoti Pramanik

gunjan0508 commented 2 months ago

is there a way to combine airport and country in a single API request