Web Service Call - Poor Format XML Returned

When making a call to the API I’m getting a poorly formatted response. It’s missing tags. Diverted for this one, but I’ve seen it on route, airspeed and other fields depending on the request. Any ideas what might be causing it?

Call:

<?xml version="1.0" encoding="UTF-8"?>

<flig:FlightInfoExRequest xmlns:flig=“http://flightxml.flightaware.com/soap/FlightXML2” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:type=“flig:FlightInfoExRequest”>
flig:identG-ZBJF</flig:ident>
flig:howMany1</flig:howMany>
flig:offset0</flig:offset>
</flig:FlightInfoExRequest>

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>

<FlightXML2:FlightInfoExResults xmlns:FlightXML2=“http://flightxml.flightaware.com/soap/FlightXML2”>
FlightXML2:FlightInfoExResult
FlightXML2:next_offset1</FlightXML2:next_offset>
FlightXML2:flights
FlightXML2:faFlightIDBAW95-1440265500-schedule-0002:0</FlightXML2:faFlightID>
FlightXML2:identBAW95</FlightXML2:ident>
FlightXML2:aircrafttypeB788</FlightXML2:aircrafttype>
FlightXML2:filed_ete06:35:00</FlightXML2:filed_ete>
FlightXML2:filed_time1440393291</FlightXML2:filed_time>
FlightXML2:filed_departuretime1440438300</FlightXML2:filed_departuretime>
FlightXML2:filed_airspeed_kts398</FlightXML2:filed_airspeed_kts>
<FlightXML2:filed_airspeed_mach />
FlightXML2:filed_altitude0</FlightXML2:filed_altitude>
FlightXML2:routeTAFFY169031 MIILS VLV OMBRE4</FlightXML2:route>
FlightXML2:actualdeparturetime1440442383</FlightXML2:actualdeparturetime>
FlightXML2:estimatedarrivaltime1440464676</FlightXML2:estimatedarrivaltime>
FlightXML2:actualarrivaltime0</FlightXML2:actualarrivaltime>
<FlightXML2:diverted />
FlightXML2:originEGLL</FlightXML2:origin>
FlightXML2:destinationCYUL</FlightXML2:destination>
FlightXML2:originNameLondon Heathrow</FlightXML2:originName>
FlightXML2:originCityLondon, England</FlightXML2:originCity>
FlightXML2:destinationNameMontreal-Trudeau</FlightXML2:destinationName>
FlightXML2:destinationCityMontreal, Quebec</FlightXML2:destinationCity>
</FlightXML2:flights>
</FlightXML2:FlightInfoExResult>
</FlightXML2:FlightInfoExResults>

Fields that are null or blank are occasionally omitted for brevity. Turning off strict WSDL validation of responses is generally preferable.

ok, I’ll turn it off. it’s not that it’s missing, but that it’s got an incorrect/partial tag - <FlightXML2:diverted /> for example.

Just more of an FYI - it seems to happen when I sent more requests at once/ in faster sequence. I’ve never seen the bad format on a single request that I only run once.

That’s an empty element tag: w3.org/TR/REC-xml/#NT-content

ah - could be on the side of the software we’re using. I think it’s expecting two tags with nothing in them - unfortunately no easy way to work around this on the software side.