The witness shall prove attendance, in open court, by oath before the clerk that the witness has not, directly or indirectly, personally procured summons as a witness, that the witness was legally summoned on behalf of the state and has verily attended the court, as a witness, the number of days claimed.