We have been experiencing connection issues randomly and often lately. The API is failing to return flight status and therefore I need to add a couple lines of script that “refreshes the WSDL” in order to get it working again.
Can you tell me why this keeps happening? We are using ColdFusion 2016 on Windows 2008 R2, and I have been using this script
<cfscript> stAuth = structNew(); stAuth.username = "XXXXXXX"; stAuth.password = "XXXXXXX"; /* Uncomment to CLEAR WSDL if stops working stAuth.wsversion=1; stAuth.refreshWSDL=true; */ ws = createObject("webservice", "http://flightxml.flightaware.com/soap/FlightXML2/wsdl", stAuth); stFlightInfoEx = structNew(); stFlightInfoEx.ident = "#flight_number#"; stFlightInfoEx.howMany = 1; stFlightInfoEx.offset = 0; aFlightInfoExStruct = ws.FlightInfoEx(stFlightInfoEx); </cfscript>