William McKinley served as a senator .
As a senator , William McKinley 's legacy was quickly cut short when he was shot on September 6 , 1901 by Leon Czolgosz , a second-generation Polish-American with anarchist leanings .
William McKinley