FlightAware Discussions

Invalid SOAP fault - AirlineFlightSchedules

Getting this error

End element 'Fault' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'SOAP-ENV:detail' from namespace 'http://schemas.xmlsoap.org/soap/envelope/'. Line 2, position 413.

When trying:

var schedules = client.AirlineFlightSchedules((int)startUnix.ToUnixTimeSeconds(),
                            (int)endUnix.ToUnixTimeSeconds(), String.Empty, String.Empty, airline, String.Empty, 1, 0);

I also tried hardcoding the arguments, per documentation found at: https://flightaware.com/commercial/flightxml/explorer/#op_AirlineFlightSchedules

var scheds = client.AirlineFlightSchedules(1536089816, 1536101000, "KLAX", "KIAH", "UAL",
                                "6879", 1, 0);

Neither of the above are returning results for me.

The time range represents dates in 2018. this is well outside of the “recent past” defined by the endpoint. The error statement is:
INVALID_ARGUMENT startDate is too far in the past (3 months)

Searching more recent schedules will work.