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





Information

Description Source
WSDL http://www.mobilefish.com/services/web_service/countries.php?wsdl
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 provides three 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
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
:

Notes:
Endpoint http://www.mobilefish.com/services/web_service/countries.php
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)

Several solutions are created to help you accessing this web service.
Note: Endpoint means the URL where the service is running.