The toy soldier in Disney's 102 Dalmatians: Puppies to the Rescue is beaten by getting close, not by trading shots.
Jump around him and keep closing the distance. Once you are near enough, he stops firing and turns to run instead. Chase him down from there and the encounter is over.
The trick is to keep moving so his shots miss while you eat up the gap.