Hanley was a member of the Iowa National Guard and served in the United States Army during the Spanish–American War.
Hanley's military service involved being a member of the Iowa National Guard and serving in the U.S. Army during the Spanish-American War.