Web service

 
 
Web services are web based applications that use open, XML-based standards and transport protocol designed to support interoperable machine-to-machine interaction over a network.

rss feed






Countries web service



The Countries web service is permanently disabled because this service is being misused.


Information

Description Source
WSDL Link unavailable
Owner / Publisher Mobilefish.com
Description Mobilefish.com is pleased to announce a program that allows you to access the countries and regions information from our server and include it on your website, free of charge for non-commercial use.

The Countries web service is limited to max. 500 SOAP requests per day.

IF YOU MISUSE THIS SERVICE YOUR IP ADDRESS WILL BE BLOCKED!

The Countries web service provides 4 operations:
  • getIANAInfo()

    This operation will return an array containing:

    ianacode
    countryname


  • countryInfoByIana(ianacode as string)

    This operation will return:

    ianacode
    countryname
    latitude
    longitude


  • regionsInfoByIana(ianacode as string)

    This operation will return an array containing:

    ianacode
    regionname
    latitude
    longitude


  • getNumberOfRequestLeft()

    This operation will return an array containing:

    requestleft
For example:

getIANAInfo()

This operation returns:

ianacode = af
countryname = Afghanistan

ianacode = ax
countryname = Aland Islands
:

countryInfoByIana("us")

This operation returns:

ianacode = us
countryname = United States
latitude = 37.09024
longitude = -95.712891

regionsInfoByIana("us")

This operation returns:

ianacode = us
regionname = Alabama
latitude = 32.576225
longitude = -86.680740

ianacode = us
regionname = Alaska
latitude = 61.304726
longitude = -158.821457
:

getNumberOfRequestLeft()

This operation returns:

requestleft = 10

Notes:
  • The latitude and logitude coordinates are arbritrary chosen located within the country or region.
  • More information about the IANA country code can be found at:
    http://www.mobilefish.com/tutorials/countrycodes/countrycodes.html
  • The number of SOAP request you have left to use is indicated by requestleft.
    Max. 500 SOAP requests per day is allowed.
    Each time a SOAP request is sent, this value is subtracted by 1.
    If it drops to 0 you have to wait 24 hours before you can use this service again.
Endpoint Link unavailable
Implementation PEAR:SOAP
More information, see tutorial: Install PEAR SOAP
Usage: Operation: getIANAInfo()
Returns: array(ianacode, countryname)

Operation: countryInfoByIana(ianacode as string)
Returns: ianacode, countryname, latitude, longitude

Operation: regionsInfoByIana(ianacode as string)
Returns: array(ianacode, regionname, latitude, longitude)

Operation: getNumberOfRequestLeft()
Returns: array(requestleft)

Note: Endpoint means the URL where the service is running.