From 2fc229f0dd1b3b671d51890a3805bb225f70200f Mon Sep 17 00:00:00 2001 From: Dieter Devlieghere Date: Mon, 19 Mar 2018 19:39:06 +0100 Subject: [PATCH] Do not remove empty elements --- CHANGELOG.md | 3 +++ src/Amadeus/Client.php | 2 +- src/Amadeus/Client/SoapClient/removeempty.xslt | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2b9d1aef..62f3e5a12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Release 1.7.0 (UNRELEASED) +# Release 1.6.1 (19 March 2018) +* Do not remove ```` node from outgoing XML (https://github.com/amabnl/amadeus-ws-client/issues/161) + # Release 1.6.0 (7 February 2018) * Recognize Passenger-level error messages in ``PNR_Reply`` responses (https://github.com/amabnl/amadeus-ws-client/issues/139) * Added support for Layover per connection options in ``Fare_MasterPricerTravelBoardSearch`` (https://github.com/amabnl/amadeus-ws-client/pull/138) - Artem Zakharchenko diff --git a/src/Amadeus/Client.php b/src/Amadeus/Client.php index 533fbd61c..0fde50472 100644 --- a/src/Amadeus/Client.php +++ b/src/Amadeus/Client.php @@ -57,7 +57,7 @@ class Client extends Base * * @var string */ - const VERSION = "1.6.0"; + const VERSION = "1.6.1"; /** * An identifier string for the library (to be used in Received From entries) diff --git a/src/Amadeus/Client/SoapClient/removeempty.xslt b/src/Amadeus/Client/SoapClient/removeempty.xslt index ffa423853..92552e287 100644 --- a/src/Amadeus/Client/SoapClient/removeempty.xslt +++ b/src/Amadeus/Client/SoapClient/removeempty.xslt @@ -16,12 +16,12 @@ - originDestination - markerRoomStayData, markerGlobalBookingInfo, markerRoomstayQuery, marker, markerOfExtra (Offer_ConfirmHotelOffer) - SalesReports_DisplayQueryReport (can be an empty request) - - fopReference, authorisationSupplementaryData (FOP_CreateFormOfPayment) + - fopReference, authorisationSupplementaryData, dummy (FOP_CreateFormOfPayment) Author: Dieter Devlieghere --> + match="node()[descendant-or-self::*[local-name(.) = 'Security_SignOut'] or descendant-or-self::*[local-name(.) = 'marker1'] or descendant-or-self::*[local-name(.) = 'dumbo'] or descendant-or-self::*[local-name(.) = 'boardOffPoints'] or descendant-or-self::*[local-name(.) = 'originDestination'] or descendant-or-self::*[local-name(.) = 'markerRoomStayData'] or descendant-or-self::*[local-name(.) = 'markerGlobalBookingInfo'] or descendant-or-self::*[local-name(.) = 'markerRoomstayQuery'] or descendant-or-self::*[local-name(.) = 'marker'] or descendant-or-self::*[local-name(.) = 'markerOfExtra'] or descendant-or-self::*[local-name(.) = 'SalesReports_DisplayQueryReport'] or descendant-or-self::*[local-name(.) = 'fopReference'] or descendant-or-self::*[local-name(.) = 'authorisationSupplementaryData'] or descendant-or-self::*[local-name(.) = 'dummy'] or descendant-or-self::*[@*] or descendant-or-self::*[string-length(normalize-space(.)) > 0]]">