I don't have a fully developed position here, but I'll throw out some thoughts:

Men who fight in wars have always been extra-aggressive. It's almost stupid to have to say it, but this is relevant. There's a reason that raping and pillaging were standard combat practices pretty much throughout history. (Still are today among less disciplined forces.)

Most soldiers fall into the 18–24 range, at which point in time a healthy male is absolutely flooded with hormones. Not as bad as sixteen, but bad enough.

The only way to combat this sort of thing is leadership. It has to come from the top down; organizations always reflect the person in charge. If senior staff think that women soldiers are inferior and to be shunted aside, this will be reflected in the officers, the non-coms, and eventually the soldiers themselves.

I can't help but think that this may be a generational problem as well. Senior staff will likely be in their fifties right now, which means they grew up in the late fifties/early sixties. They may have attitudes toward women soldiers that can't be changed.

So, two things can ameliorate the let's-rape-the-corporal problem: Time and leadership.