FlightXML3 verification failed


FlightXML3SoapClient client = new FlightXML3SoapClient();
client.ClientCredentials.UserName.UserName = “xxx”;
client.ClientCredentials.UserName.Password = “xxx”;

        AirportBoardsRequest req = new AirportBoardsRequest();
        req.airport_code = "ZBTJ";

        FindFlightStruct res = client.FindFlight("ZBTJ", "ZPPP",false,"", "",10, 0);

Get the data server using the above code to return a 401 error ,Please help me


Are you sure that you are supplying the hexadecimal API key (and not your website password) for the client.ClientCredentials.UserName.Password variable? Also be sure you are using your v3 API key and not your v2 API key. You can view your current API keys at https://flightaware.com/commercial/flightxml/key.rvt