● Travel Never Stops. Neither Do We. 365 Days a Year.

GDS XML API Integration for SOAP Fault Handling

Distinguish SOAP faults, transport failures and supplier business rejections before deciding how to recover a GDS request.

Integration engineer and travel specialist examine a printed incident report

Connecting to a Global Distribution System (GDS) involves more than exchanging XML. When a request fails, the integration must determine whether the network broke, the SOAP processor rejected the message, or the supplier accepted the message but declined the requested business action. Each requires a different response.

A dependable gds xml api integration solution preserves that distinction, especially during reservation creation, modification, cancellation, and ticketing. An unsafe retry can duplicate a booking. This guide explains how to classify failures, interpret SOAP faults, preserve diagnostic evidence, and recover safely when a reservation outcome is uncertain.

Start With the Failure Boundary, Not the Error Message

A failed integration call is not one universal condition. First identify the layer producing the evidence. An HTTP client may report a connection failure without ever receiving XML. A SOAP service may return a formal fault envelope. A supplier application may return a syntactically valid response explaining that inventory, authorization, or business rules prevented completion.

These distinctions matter because the same English words can appear at different layers. “Timeout” might describe an uncompleted TLS connection, an upstream processor referenced inside a SOAP fault, or a provider business response after the original request was processed. Text alone cannot tell a booking engine whether its write operation took effect.

Transport and delivery uncertainty

Transport failures include DNS problems, connection refusals, TLS negotiation failures, interrupted uploads, gateway errors, and client read timeouts. Record whether the client established a connection, sent the complete request, and received any response bytes. These observations do not always prove whether an operation committed.

For example, losing the response after submitting a reservation is more dangerous than failing before transmission. The former leaves an unknown downstream state. An HTTP 502 or 504 may also represent an intermediary's inability to obtain a timely upstream response, not proof that the supplier discarded the request.

SOAP processing faults

A SOAP fault is structured error information carried inside a SOAP message. It can identify an envelope-version mismatch, an unrecognized required header, malformed input, or processing failure. Its envelope structure is governed by the SOAP version in use; the details inside may introduce supplier-specific classifications that must be interpreted against the actual service contract.

Faults are not automatically safe to retry. A server-side category may indicate a temporary condition, yet the service might have completed some downstream work before returning an error. The operation's side effects and any documented idempotency guarantees must govern recovery rather than the fault label alone.

Business rejections and warnings

A business rejection can arrive inside an otherwise valid operation response, without a SOAP Fault element. Typical categories include unavailable inventory, a fare that must be repriced, a rejected payment instruction, or a permission restriction. A warning may indicate partial success or an advisory.

Do not collapse a warning into success or failure without checking its scope. A search warning may be informational, while a reservation warning may require verification of individual segments or fulfillment steps. Normalize these outcomes into application states that preserve the original supplier meaning.

Establish the SOAP Version and Deployed Binding

Before designing a fault parser, confirm the version actually used by the deployed GDS endpoint. Check the effective WSDL, service binding, endpoint configuration, request headers, and captured response envelope. Operations and environments may differ, so library defaults are unreliable.

The W3C SOAP 1.2 messaging framework explains standard fault semantics and is useful for understanding the protocol model. It does not establish that any particular GDS integration uses SOAP 1.2. Never impose its rules on a SOAP 1.1 client.

What changes between SOAP 1.1 and SOAP 1.2?

SOAP 1.1 faults normally expose faultcode, faultstring, optional faultactor, and detail. The familiar top-level categories include Client and Server. SOAP 1.2 instead defines a Fault with mandatory Code and Reason, plus optional Node, Role, and Detail. Its categories include Sender and Receiver.

Although these pairs are conceptually related, their wire structures are not interchangeable. A parser expecting Code/Value will miss a SOAP 1.1 faultcode. A classifier searching for faultstring will miss a SOAP 1.2 Reason/Text. Validate each format separately.

SOAP 1.1 and SOAP 1.2 also differ in commonly used HTTP media types and action conventions. A SOAP 1.1 HTTP request typically uses text/xml and may require SOAPAction; SOAP 1.2 commonly uses application/soap+xml. Confirm the provider's documented binding rather than adjusting headers until a sample request appears to work.

The W3C SOAP 1.1 note describes the earlier fault elements and HTTP conventions. Read it with deployed service documentation. Reject unexpected envelopes rather than silently changing protocol behavior.

Read the Fault Envelope Without Losing Meaning

Start by verifying that the response is well-formed XML and that the expected envelope and body are present. Locate the fault by its qualified element identity, not by a matching word anywhere in the payload. SOAP 1.2 defines a fault as the sole child element of the body when it is carrying SOAP error information.

Next extract a normalized code, optional subcode, human-readable reason, actor or node information where available, and a carefully limited representation of any detail. Preserve the original qualified code alongside your mapped category. This supports analysis of unfamiliar subcodes.

Separate machine classifications from prose

Software should classify against documented code fields and structures, not broad substring matches on human explanations. Descriptions can be localized, expanded, or altered without changing the underlying condition. “Not available” might refer to inventory, access, or an upstream host; context resolves the ambiguity.

SOAP 1.2 distinguishes Sender conditions, which generally should not be resent unchanged, from Receiver conditions, which may succeed later. Neither category authorizes an automatic booking retry. VersionMismatch points toward a protocol negotiation or endpoint mismatch, while MustUnderstand identifies a required header-processing problem.

Fault Detail is not a transaction receipt. The SOAP 1.2 specification explicitly says its presence does not establish which parts of the original message were processed. A supplier-specific detail code can improve diagnosis, but it cannot by itself establish that a reservation was never created unless the relevant application contract guarantees that interpretation.

Interpret vendor extensions carefully

Real GDS integrations may expose a provider's own hierarchy inside or alongside SOAP faults. The Travelport Universal API provisioning and testing guidance documents examples containing SOAP 1.1-style faultcode and faultstring fields, plus application details such as service, type, and transaction identifier.

That source also documents warning content and several access or provisioning problems. It illustrates why a generic SOAP parser is insufficient for business classification. It is neither a universal dictionary nor proof of identical endpoint behavior.

Keep two mappings: a protocol layer that recognizes the envelope, and a supplier adapter that translates documented extension fields. Preserve original identifiers for unclassified values. Do not force them into “temporary server error” merely because a code resembles an error seen elsewhere.

Interpret HTTP Status Alongside the Payload

HTTP status is evidence about a transport binding, not a complete statement about the business transaction. A response with status 200 can still contain a rejection or warning within its XML body. An HTTP 500 can carry a SOAP fault with useful diagnostic detail. A gateway status without any parseable SOAP content may leave the application unable to determine what happened upstream.

The precise correspondence between HTTP errors and SOAP faults depends on the binding version and service behavior. SOAP 1.1's HTTP binding specifies an HTTP 500 response with a SOAP fault for SOAP processing errors. SOAP 1.2 has its own HTTP binding rules, described separately from its Part 1 messaging framework. Do not infer those rules solely from the presence of SOAP 1.2 XML.

Build a response classifier that examines the transport outcome, HTTP status and headers, body availability, envelope version, fault presence, and operation-specific business status. If any layer is missing or contradictory, preserve the uncertainty. Treat an HTML proxy error page as a gateway response, not as invalid supplier XML that the customer caused.

Failure evidence and initial recovery posture for GDS XML operations; decisions remain subject to the deployed provider contract and whether the operation changes state.
Observed condition What it establishes Initial handling
Connection fails before request transmission No completed request was sent by this client connection Consider a bounded retry only if delivery is reliably ruled out
Timeout after request transmission Response is missing; downstream outcome may be unknown Hold writes and reconcile state before resubmission
HTTP error with parseable SOAP fault SOAP processing evidence is available Apply version-aware code and operation-specific rules
HTTP success with supplier rejection Transport succeeded; requested business action did not complete as reported Use documented rejection and correction workflow
HTTP success with warning or partial result Some response content is usable; final state needs evaluation Validate individual outcomes before confirming success
Unrecognized or contradictory response Classification is incomplete Quarantine writes, capture safe evidence, and investigate
Two developers classify service error cards across a meeting table

The table is a starting point, not an authorization matrix. A request may pass through several intermediaries, and a client library's “sent” indicator does not necessarily mean the target supplier received the complete body. A safe integration records what it knows, what it does not know, and which evidence supports each classification.

Model Business Outcomes Separately From Protocol Health

A transport-successful SOAP response may still leave the requested travel operation incomplete. Search results can be empty; a priced offer can expire; a traveler name can fail validation; or a booking can be created while a subsequent fulfillment action remains pending. These outcomes belong to the supplier business layer, not the SOAP protocol layer.

Define application states around meaningful travel outcomes: rejected without side effect, confirmed complete, completed with warnings, partially completed, pending verification, and unknown. Do not use a single boolean named success for every stage. A reservation locator, ticket number, voucher, and status message represent different milestones and should not be treated as interchangeable proof.

Rejections that call for correction

Some business rejections require changed input, changed permissions, fresh pricing, or a different product choice. A repeated identical request wastes time and can trigger throttling. Surface a useful user action where appropriate, while keeping internal details about account configuration, credentials, and host routing away from public interfaces.

Other rejections may require supplier support rather than traveler intervention. The referenced Travelport guidance explicitly routes listed provisioning and testing problems to API support and notes that pre-production data can differ from production. Treat those statements as source-specific operational guidance, not as evidence that a production reservation can be safely retried.

Warnings that change fulfillment decisions

A warning should be attached to the component or action it qualifies. A completed itinerary with an advisory differs from a reservation containing an unconfirmed segment or a ticketing step that did not finish. The user interface should reflect the actual confirmed components, and internal processing should block dependent actions when prerequisites are missing.

Keep the supplier's warning code, severity, affected segment or item, and recommended action if defined. If the provider offers only free-form text, classify conservatively and escalate unfamiliar messages. Warning handling must be independently tested; it should not be hidden behind the generic exception handler used for malformed envelopes.

Choose Recovery Based on Operation and Evidence

Recovery begins with classifying an operation as read-only or potentially state-changing. Availability search and detail lookup are usually read-oriented, although their limits and session semantics still matter. Create, modify, cancel, issue, void, and similar operations can alter supplier state or financial obligations. Assign every operation an explicit retry policy rather than inheriting one HTTP client's defaults.

For a read-only request, bounded retries may be appropriate when the provider permits them. Use deadlines, exponential backoff, randomized delay, and rate-limit awareness. Stop when the caller no longer needs the result. A retry that returns stale or inconsistent inventory should not silently replace the most recently verified commercial terms.

Never blindly replay an unclassified write

For a state-changing call with unknown outcome, stop automatic replay. Retrying a timed-out creation request may produce a second reservation. Retrying a cancellation can obscure what was already canceled. Host exceptions do not guarantee downstream rollback.

Use a durable local operation record with a unique internal attempt identifier, business intent, supplier operation, time window, and current state. Where the supplier contract documents a true idempotency mechanism, use it exactly as specified. An internal correlation ID alone does not make an external SOAP operation idempotent.

Reconcile before resending

When the response is lost, query authoritative reservation state using supported identifiers or a documented search mechanism. Match multiple facts, such as traveler, itinerary, dates, creation window, agency context, and any reference returned previously. A single matching name is insufficient. Respect provider limits and avoid retrieving unrelated customer records.

If reconciliation confirms the intended operation completed, attach the verified reservation to the local record and do not resend. If authoritative evidence confirms the operation did not occur, a new submission may be considered under documented business rules. If the result remains ambiguous, hold the transaction for assisted investigation and communicate a pending status rather than claiming failure or success.

Keep recovery actions monotonic: uncertainty becomes confirmed success, confirmed non-completion, or escalated investigation, not a silent reset to “new.” Restrict parallel workers from reprocessing the same intent through a database lock or state transition guard. Record who or what approved each resubmission and which evidence justified it.

A Worked Hypothetical Reservation Incident

Hypothetical scenario: A fictional agency, Harbor Lane Travel, submits a SOAP 1.1 reservation-create request through a fictional intermediary. The request describes one adult traveling on two segments. The agency platform assigns internal operation ID HLT-48271 and stores a redacted digest of the intended itinerary before transmission. All details are invented.

The TLS connection succeeds, and the client finishes writing the request. After twenty seconds, the read deadline expires with no response body. There is no SOAP fault to parse, no supplier business rejection to interpret, and no reservation locator in the client's records. The platform must not convert its local timeout into “booking failed.”

Its classifier records transport_timeout_after_send, write_intent, and outcome_unknown. It prevents the booking button and retry worker from issuing a second creation request under the same intent. The customer sees a pending verification message, with a clear instruction not to repeat checkout until the agency confirms the outcome.

The integration then uses an authorized reservation retrieval or search facility assumed to be available in this fictional arrangement. It checks the agency's own booking scope and compares the two intended segments, traveler identity, travel date, and recorded submission window. On the first check, no reliable match is returned. That absence is not yet proof of non-creation because downstream visibility may lag.

A subsequent permitted check finds one matching reservation with a supplier locator and the expected segments. The application verifies that this record belongs to the original customer intent and confirms its actual status. It marks HLT-48271 as reconciled, stores the locator in protected storage, and stops further create attempts. Any later ticketing action remains subject to its own independent checks.

Now consider the classification question rather than inventing another outcome: had the client received a SOAP fault, the parser would first validate its SOAP 1.1 structure and then read any documented provider detail. Had it received a business rejection in a normal response, the supplier adapter would classify that rejection. Neither hypothetical alternative would justify skipping reservation-state checks when side effects remained uncertain.

This incident shows why delivery evidence and business evidence must coexist. The timeout describes what the client failed to observe; the later authenticated retrieval establishes the booking state. The recovery succeeds not because an error message predicted the outcome, but because the platform withheld a duplicate write until it obtained authoritative evidence.

Log Faults Safely Enough to Investigate Them

GDS XML requests can contain traveler names, contact details, document information, authentication material, payment-related fields, and commercial data. Full payload logging may expose sensitive information to people and systems that do not need it. Fault handling should create useful diagnostic records without turning centralized logs into a shadow reservation database.

Record timestamps, environment, endpoint alias, operation name, SOAP version, HTTP status, network error category, normalized fault code, documented supplier code, and internal correlation ID. Capture provider transaction references when permitted and useful for support. Store request and response sizes, elapsed time, retry count, and recovery state separately from payload content.

Redact before data leaves the integration boundary

Apply allowlist-based structured logging where possible. Mask credentials, authorization headers, session tokens, cookies, traveler identifiers, contact details, payment fields, and security-sensitive free text. Treat SOAP fault Detail as potentially sensitive, because it can echo request values or contain operational data. Redaction should happen before logs reach an external collector.

If a restricted payload archive is genuinely necessary for incident response, use strong access controls, encryption, short retention periods, and audited retrieval. Prefer a sanitized sample and a cryptographic digest for routine debugging. Do not place raw envelopes in email threads, customer support tickets, analytics events, or browser-visible error messages.

Give users stable, understandable messages such as “Reservation status is being verified,” while support teams receive a separate diagnostic reference. Avoid displaying raw faultstring, stack traces, host addresses, or provider account identifiers. Human-readable SOAP reasons are diagnostic inputs, not automatically safe public copy.

Test Failure Paths and Operate With Clear Ownership

A successful test booking does not validate a fault handler. Create a test matrix covering SOAP 1.1 and SOAP 1.2 parsing only where those versions are actually supported, unexpected envelopes, malformed XML, missing body content, fault codes, business rejections, warnings, gateway responses, and timeouts at different transmission stages.

Simulate a lost response after a write and verify that no automatic second request occurs. Test delayed reservation visibility, duplicate matching candidates, an unavailable retrieval service, and interrupted recovery workers. Verify that one operation cannot be simultaneously advanced by two workers, and that the customer interface never labels an unknown outcome as a confirmed failure.

Use controlled fixtures that preserve fault shape but contain synthetic traveler and account data. Compare each fixture against documented provider behavior, not an assumed global GDS standard. Test non-production quirks separately from production expectations; the Travelport testing guidance notes data refreshes and missing pre-production PNRs, making environment context essential for interpreting a failed lookup.

Review metrics by endpoint and operation: fault rates, transport error rates, business rejection categories, unresolved write outcomes, time to reconciliation, and duplicate-prevention events. Alert on sustained changes and on unresolved high-impact writes rather than on every harmless warning. Operational runbooks should assign ownership for supplier escalation, customer communication, and final reconciliation.

For each supported integration, maintain a versioned classification registry containing endpoint binding, recognized codes, affected operations, retry permissions, reconciliation methods, logging rules, and support escalation requirements. Update it after supplier changes and production incidents. Unknown codes should trigger investigation, not a default retry policy that grows increasingly risky over time.

Build a Recovery Contract, Not Just an Exception Handler

The strongest approach treats a SOAP fault as one piece of evidence within a larger transaction lifecycle. Protocol parsing says what the message means. Transport analysis says what was observed across the connection. Supplier business mapping says whether the requested travel outcome was accepted, rejected, partially fulfilled, or still uncertain.

For TravelTech365 projects, a robust gds xml api integration solution should turn those observations into explicit states, controlled recovery decisions, secure diagnostics, and verifiable customer outcomes. Confirm the deployed SOAP binding, maintain provider-specific classifications, and reconcile ambiguous reservations before another write. That discipline protects booking integrity when the network, protocol, and supplier application do not tell the same story.