throwing error for API calls like mentioned below
TrackStruct route = client.GetFlightTrack(“THY721”, false);
There are few more errors seen for other API’s & error message is not really descriptive. Is there any documentation available for the same (for understanding errors).
Error:
An unhandled exception of type ‘System.ServiceModel.ProtocolException’ occurred in mscorlib.dll
Additional information: The remote server returned an unexpected response: (400) Bad Request.
Thank you so much for support…In API referance page it has been mentioned to send Ident as input. Anyway it worked for one case but failed when passed another flightID. Again the error is not descriptive.
Thank you for your support.
My problem is I am not able to get correct flightID no. FlightInfoSTatus return many records even after passing date filer like below. Or maybe filter expression I am sending is incorrect.
Can anyone guide how I should be sending correct date filter so that I shoul dget relevant ID of the flight for desired date.
I always do the filtering on the client side, but that’s just me. I use swift that has very powerful and fast filtering on Dictionaries/Arrays etc. Also Swift 4 has some very nice JSON decoding native support. There’s no substitute to reading the API documentation; I would also recommend using a http client like PAW or Charles.