William J. Wray (May 16, 1845 - June 2, 1919) was an American soldier who won the Congressional Medal of Honor for his actions at the Battle of Fort Stevens in the American Civil War.