Upon service on a person of an order requiring the person to attend for examination or to produce documents, together with the payment or tender of a reasonable sum for expenses, the person shall attend at the time and place appointed and shall have and be subject to the same rights and liabilities as if the person were summoned before the court or person by which or whom the order was made.