The psychological reading
A soldier acts on orders, so the image often appears when you feel your choices are being made by someone else, a boss, a family role, or your own strict standards. It can also reflect a need for protection or the energy to defend something you care about.
Your position in the dream is key. Being a soldier points to duty and endurance; watching soldiers march hints you are observing a struggle from outside.