public static void ChangePassword(string domainName, string userName, string userPassword)
 {
     try
     {
         string res = string.Empty;
         if (userPassword != string.Empty)
         {
             XMLayer xmLayer = new XMLayer();
             xmLayer = XMServer.CreateXMLayer();
             xmLayer.Login();
             res = xmLayer.ChangePassword(domainName, userName, userPassword);
             xmLayer.Logout();
             if (res == "+00000 OK")
             {
                 res = string.Empty;
             }
         }
     }
     catch (Exception error)
     {
         Log.WriteException(error);
     }
 }