When a soldier fights.

When a soldier fights, what are they fighting for? There is what they have in their minds and there is what the leaders who pay their wages, supply their guns and give the orders, have in their minds. Which set of ideas is actually going to determine the effect the events taking place will have in the world?