I need to consume a web service that returns a json and I do not know what to do to run the result since I must store it in a table in the database, could you help me please. I'm executing it in the following way, based on an answer that I found the same here in the forum.
wsRutas.UltimaPos ws = new wsRutas.UltimaPos();
ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
ws.PreAuthenticate = true;
ws.ultima("user", "pass"); // al llegar a este punto me sale un mesaje que dice la respuesta no es codigo XML correcto
When I execute the method I get a json like that
{"Geocercas":[{"Description":" Eco 79087 WM-47 53357","Latitude":19.1513000000,"Longitude":-96.1736000000,"Speed":45.62,"UtcTimeCorrected":"2018-03-08T09:20:50","Identifier":"53357"},{"Description":" Eco 93493 WR93 53283","Latitude":19.1684093652,"Longitude":-96.1298141162,"Speed":42.01,"UtcTimeCorrected":"2017-08-15T13:49:01","Identifier":"53283"}
When it reaches the point where I execute the method and I pass the user and password I can get the result