This command is used to fetch the ISO 3166 country code and country name. The name is not stored in the databse, but is generated from a translation contant that is TRANS_ISO_3166_ followed buy the ISO code. This allows the country names to be displayed in the locales language depending on the availability of that info from the CLDR. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetCountries command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <countriesID><!-- int --></countriesID> <countriesISO2><!-- string --></countriesISO2> <countriesRegion><!-- string --></countriesRegion> <countriesPhoneCode><!-- int --></countriesPhoneCode> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
countriesID
The ID of the country to fetch. This will always select at most 1 country.
countriesISO2
The two character ISO 3166 code of the country to fetch. This will always select at most 1 country.
countriesRegion
The UN geographical designation code for the country. See http://unstats.un.org/unsd/methods/m49/m49regin.htm for list.
countriesPhoneCode
teh 1 to 3 digit phone profix for the country.
sortDir
sortColumn
recordOffset
numRecords