It looks like it wouldn't be hard to do. A soldering iron would be the only special tool required.
You may also be able to repair the broken wire in the solenoid.
Does the plunger move up and down easily by hand?