A Wiltshire man will stand trial accused of attempted murder.