public static void SendLocationToeForce(AvlProxy loc) { var url = "http://test.eforcesoftware.net/Services/Exchange/AVLExchange.svc"; using (var svc = new AVLExchangeClient(NewBinding(url), new EndpointAddress(url))) { svc.UpdateAvlUnit(new AVL { direction = loc.Direction, gpsDate = loc.GpsDate, speed = loc.Speed, unit = loc.Unit, x = loc.X, y = loc.Y, z = loc.Z }); } }
public void UpdateLocation(AvlProxy location) { AvlService.SendLocationToeForce(location); }