soldering a 12V plug cathode
Most likely, not enough heat.  Both the terminal and the wire need to be heated to the melting point of solder for the solder to flow properly.  But that spring terminal is acting as a very effective heat sink.

The only real answer is a more powerful soldering iron, or an alternative method of making the joint, such as spot welding.