public bool Logout(authTokenType token) { xmCryptoService client = new xmCryptoService(); try { logout log = new logout(); log.AuthToken = token; client.logout(log); return(true); } catch (Exception ex) { Log.Error("Error al intentar realizar logout: " + ex); return(false); } finally { client.Dispose(); //if (client.State == CommunicationState.Faulted) // client.Abort(); //else // client.Close(); } }