Kurt Vonnegut was a combat infantryman with the U.S. Army during WWII and served in the European theater of war (including being captured during the Battle of the Bulge), but somehow managed to love the military quite a bit less than Heinlein. You could say the same about a lot of authors with military backgrounds.