Stephan Andrew James, 33, of South St. Paul, is accused of shooting a man in both legs after the victim arrived at a wedding uninvited and got into a shouting match with the groom.