A consulate is the office of a consul. A type of diplomatic mission, it is usually subordinate to the state's main representation in the capital of that foreign country (host state), usually an embassy (or, only between two Commonwealth countries, a high commission). The term "consulate" may refer not only to the office of a consul, but also to the building occupied by the consul and the consul's staff. The consulate may share premises with the embassy itself. A consul of the highest rank is termed a consul-general and is appointed to a consulate-general. There are typically one or more deputy consuls-general, consuls, vice-consuls, and consular agents working under the consul-general. A country may appoint more than one consul-general to another nation. Consuls of various ranks may have specific legal authority for certain activities, such as notarizing documents. As such, diplomatic personnel with other responsibilities may receive consular letters patent (commissions). Aside from those outlined in the Vienna Convention on Diplomatic Relations, there are few formal requirements outlining what a consular official must do. For example, for some countries, consular officials may be responsible for the issue of visas; other countries may limit "consular services" to providing assistance to compatriots, legalization of documents, etc. Nonetheless, consulates proper will be headed by consuls of various ranks, even if such officials have little or no connection with the more limited sense of consular service. Activities of a consulate include protecting the interests of their citizens temporarily or permanently resident in the host country, issuing passports; issuing visas to foreigners and public diplomacy. However, the principal role of a consulate lies traditionally in promoting trade—assisting companies to invest and to import and export goods and services both inwardly to their home country and outward to their host country. Although it is not admitted publicly, consulates, like embassies, may also gather intelligence information from the assigned country.