36. After issue joined, any party or other person may be summoned to appear for examination before a judge by writ of subpoena ordering him to appear and give evidence or to bring with him and produce all documents or other things mentioned in the subpoena, in the same way as at the trial of the petition; he shall be bound to appear and obey such summons and shall be entitled to be taxed for his appearance and his expenses, as if he had been summoned to appear at the trial.