Holding device comprising brake valve operated by solenoid