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);