Either party may take proof by deposition, to be read on the trial of the attachment, or, by permission of the court, the witnesses may be orally examined in court.