The soldiers resisted the enemy's attack.

Literal

Soldiers [topic-は] enemy [possessive-の] attack [target-に] resisted.

抵抗する takes に to mark what one resists — 攻撃に抵抗する (to resist an attack). A straightforward military narrative sentence.