import com.flightaware.flightxml.soap.FlightXML2.*; class test { public static void main(String[] args) { try { FlightXML2Locator locator = new FlightXML2Locator(); FlightXML2Soap df = locator.getFlightXML2Soap(); FlightXML2SoapStub stub = (FlightXML2SoapStub)df; stub.setUsername("sampleUser"); stub.setPassword("abc123abc123abc123abc123"); // Get the list of enroute aircraft. EnrouteStruct r = df.enroute(new EnrouteRequest("KAUS", 10, "", 0)).getEnrouteResult(); for (EnrouteFlightStruct e: r.getEnroute()) { System.out.println(e.getIdent()); } // Get the weather. System.out.println(df.metar(new MetarRequest("KAUS")).getMetarResult()); } catch (javax.xml.rpc.ServiceException x) { System.err.println(x); } catch (java.rmi.RemoteException x) { System.err.println(x); } } }
Travel Road

FREE
VIEW