GetCountries

Description

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:

Attributes

package
modernbill
subpackage
mbapi
version
0.9
author
Mark Garrett

Example Request

	<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>

		

Example Response

None
		

Request Elements

mbapi
Type
None
Description
None
Children
command
Type
None
Description
None
showXMLHeader
Type
None
Description
None
params
Type
None
Description
None
Children
countriesID
Type
int
Description

The ID of the country to fetch. This will always select at most 1 country.

countriesISO2
Type
string
Description

The two character ISO 3166 code of the country to fetch. This will always select at most 1 country.

countriesRegion
Type
string
Description

The UN geographical designation code for the country. See http://unstats.un.org/unsd/methods/m49/m49regin.htm for list.

countriesPhoneCode
Type
int
Description

teh 1 to 3 digit phone profix for the country.

sortDir
Type
None
Description
None
sortColumn
Type
None
Description
None
recordOffset
Type
None
Description
None
numRecords
Type
None
Description
None

Response Elements

None