Even attacking various guards who turn hostile, other soldiers nearby should not react negatively, unless they get caught in the crossfire of an area effect spell or splitting arrows, etc.
Some guards can be bribed to overlook your lack of identification papers, but they are easy enough to kill it isn't worth it.