He only swore to uphold the Constitution...
he is only responsible to obey legal orders...
The Army takes a dim view of soldiers who decide for themselves whether an order is legal or not. Just Google Michael New or Ehren Watada to see.