You can play offline in training mode, or you can push your character to the top of its level and finish all single-player assignments. This is how you get XP even when not playing online.