XML API Integration in Travel: SOAP vs REST/JSON Explained for Booking Platforms

What XML API integration means for travel booking sites, why GDS APIs still use SOAP/XML, how it compares with REST/JSON, and how to plan an integration.

Jul 3, 2024 4 min read dev
Share:

XML API integration means connecting your travel website or app to a supplier (a GDS, airline, hotel wholesaler or bus operator) whose API sends and receives data as XML, usually over SOAP. In travel this is still very common: legacy GDS services such as Travelport Universal API and Amadeus Web Services are SOAP/XML. Newer services, for example Sabre's new capabilities and Travelport's JSON APIs, use REST/JSON.

So most booking platforms must handle both. This guide explains the difference in plain language and shows how to integrate XML suppliers without making your platform hard to maintain.

XML vs JSON and SOAP vs REST in simple terms

  • XML and JSON are data formats. XML wraps values in tags; JSON uses lighter key–value pairs.
  • SOAP is a strict messaging protocol that always uses XML, with an envelope, headers and a formal contract (WSDL/XSD).
  • REST is an architectural style over normal HTTP that most often uses JSON.
SOAP / XMLREST / JSON
Typical in travelLegacy GDS services, many hotel and bus suppliersNewer GDS APIs, NDC aggregators, modern suppliers
ContractStrict schemas (XSD/WSDL)OpenAPI docs, usually more flexible
AuthenticationOften credentials or session tokens in SOAP headersOften OAuth 2.0 bearer tokens
Payload sizeLarger, more verboseSmaller
ToolingMature in Java and .NET; needs XML parsingNative in JavaScript and most modern stacks

Neither is "wrong". Sabre says REST/JSON is its standard for new capabilities while SOAP remains available, and Travelport publishes guides for moving from Galileo Web Services to its JSON APIs (Sabre, Travelport).

What travel content comes through XML APIs?

  • Flights: GDS web services and some airline APIs. See flight API integration.
  • Hotels: wholesalers and bedbanks, some of which still offer XML alongside JSON. See hotel API integration.
  • Bus, transfers and activities: many regional suppliers, particularly in India.
  • Cars and insurance: depending on the provider.

How to integrate an XML travel API

  1. Get the documentation and test credentials after signing the supplier agreement.
  2. Generate typed models from the schema (XSD/WSDL) instead of building XML strings by hand. This catches errors at build time.
  3. Write a supplier adapter that converts the XML response into your platform's own standard format (for example one "FlightOffer" or "HotelRate" object).
  4. Handle sessions and errors: some SOAP services are stateful, with session tokens to open and close, and each supplier has its own error codes.
  5. Log raw requests and responses (with card data and personal data masked) so problems can be traced with the supplier.
  6. Test edge cases and certify with the supplier before production.

Architecture tip: one internal format, many suppliers

The most expensive mistake is letting supplier XML leak into your website code. Instead:

  • Keep each supplier behind an adapter (XML or JSON, it doesn't matter to the rest of the system).
  • Expose one clean internal API, usually REST/JSON, to your website, mobile apps and B2B portal.
  • Cache non-personal static data such as hotel descriptions and airport lists, but re-check prices before booking.

With this setup, swapping a supplier or adding a JSON one later doesn't affect your front end.

Performance and reliability

  • XML responses can be large. Use streaming parsers and compression (gzip) where suppliers support it.
  • Call suppliers in parallel with sensible timeouts so one slow supplier doesn't block results.
  • Respect look-to-book or request limits in your agreements.
  • Monitor response times and error rates for each supplier.

Frequently asked questions

Is XML outdated for APIs?

Not in travel. Many core systems still use SOAP/XML because they are stable and feature-complete. New services lean towards REST/JSON.

Can one booking engine use both XML and JSON suppliers?

Yes. Adapters convert each supplier's format into one internal model.

What is a travel XML booking engine?

A booking engine whose supplier content (flights, hotels, buses) is pulled live from XML APIs rather than entered manually.

Should I migrate from SOAP to REST?

If your supplier offers a supported REST/JSON version with the features you need, migrating often simplifies maintenance. Plan it supplier by supplier.

Related guides

Work with an experienced travel API team

BDSD Technology integrates XML and JSON travel APIs (GDS, airline, hotel, bus and transfer suppliers) into one booking engine. See our travel API integration services or contact us.

xml api integration travel xml api soap vs rest travel api json api integration xml booking engine hotel xml api
Table of Contents
Talk to Our Experts

Have a project in mind?

Tell us what you are building — we will help you choose the right tech, team, and approach.

Visit Contact page

Our Newsletter

Tech updates & digital insights — weekly.

Start Your Project Today

Ready to build or upgrade your digital platform?

Our team has delivered 500+ projects — get a free technical consultation to map out your scope and timeline.