Error with FlightXML3 AirlineFlightSchedules


#1

I’m trying to use the AirlineFlightSchedules service but I’m getting the following error when performing the call, also a copy of my example code is below:

{“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 361.”}

var client = new FlightXML3SoapClient();
            client.ClientCredentials.UserName.UserName = ConfigurationManager.AppSettings["FlightAwareUsername"];
            client.ClientCredentials.UserName.Password = ConfigurationManager.AppSettings["FlightAwareAPIKey"];

            string airlineCode = "";

            switch (airlineId)
            {
                case 1: //united airlines
                    airlineCode = "UA";
                    break;
                case 2://jet blue
                    airlineCode = "JBU";
                    break;
                case 3://wow
                    airlineCode = "WW";
                    break;
            }

            var res = client.AirlineFlightSchedules((int) startDate.Ticks, (int) endDate.Ticks, "", "LAX",
                airlineCode, "", false, 15, 0);

#2

I’ve reproduced the error and I’m looking into the root cause. I’ll have an update for you in the next day.


#3

Hi, have you had any luck fixing this issue?


#4

Sorry haven’t had a chance to really dig into with the hurricane issues this week. We have a ticket open for it, but I don’t have a resolution for you yet. By chance have you tried using the REST interface instead of the SOAP one?

I think it’s some issue with the SOAP schema compatibility, but all my checks on the raw SOAP response pass as valid SOAP. If I find a resolution I’ll be sure to pass it along and update the documentation accordingly.