It's not just a matter of principle and doesn't require resignation.
Whether you agree or disagree with him, he is perfectly entitled to question the legality of his orders.
Once it's pointed out that the order is legal then he is in the wrong. The outcome should be interesting - legally not at war, refusal to obey a legal order - reposted into theatre - refusal - what then?