I try to use FlightXML in MS .NET (C#, Visual Studio 2010).
I add Service Reference with WSDL URL
http://flightxml.flightaware.com/soap/FlightXML2/wsdlAnd then I write simple code
Code:
var conn = new FlightXML2.FlightXML2SoapClient();
conn.ClientCredentials.UserName.UserName = "UserName";
conn.ClientCredentials.UserName.Password = "*****";
conn.Open();
Console.WriteLine( conn.Metar("KAUS") );
conn.Close();
But I have authentication error, when program calls Metar method.
Code:
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="FlightXML2"'.
Where is the problem?
