stAuth = structNew(); stAuth.username = "g...r"; stAuth.password = "3a96...a72a"; stAuth.wsVersion = "2"; ws = createObject("webservice", "http://flightxml.flightaware.com/soap/FlightXML2/wsdl", stAuth); application[type] = structNew(); stSearch = structNew(); stSearch.howMany = 10; stSearch.offset = 0; stSearch.query = "-inAir 1 -type E50P -aboveAltitude 179"; aSearchStruct = ws.search(stSearch); application[type].searchFlights = aSearchStruct.getSearchResult().getAircraft();