In a foreign state or country depositions shall be taken on notice before a secretary of embassy or legation, consul general, consul, vice-consul, or consular agent of the United States, or before such person or officer as may be appointed by commission or under letters rogatory.