Armyman discharged in case of raping colleague’s ex-wife