Thanks very much - I was able to change the output location to my home drive by using (from Developer Command Prompt):
wsdl.exe /out:u:\FlightXML2.cs http://flightxml.flightaware.com/soap/FlightXML2/wsdl
and hey presto - I now have a cs file called FlightXML2.cs which I can add to my project (a Console Application).
When I built the Console Application, I had hundreds of missing references in FlghtXML2.cs - I think you need to add an extra reference to System.Web.Services.dll which is found in
C:\Program Files (x86)\ReferenceAssemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Web.Services.dll
Then I wrote the program.cs file as follows - I'm looking to download recent flight data for a specific Tail number. Note reference to System.Net
Now to convert this into a DLL that I can call from Excel passing the TailID. Hope this helps someone - my first time using VisualStudio/C# - interesting stuff.
public static void Main(string args)
FlightXML2 df = new FlightXML2();
df.Credentials = new NetworkCredential("andrewsynnott", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
df.PreAuthenticate = true;
// get the last 15 flights for a tailID using FlightInfoEx
FlightInfoExStruct r = df.FlightInfoEx("N937NN", 15, 0);
foreach (FlightExStruct t in r.flights)
System.Console.WriteLine(t.actualdeparturetime + " : " + t.originCity + " to " + t.destinationCity);