WEB SERVICE

The Benchmarking Tools' data can be accessed via presented Web Services too. You can integrate the data into your application using any programming language or platform that provides a SOAP client. At the moment the following Web Services are available:

The definition of our Web Services (WSDL file) is located under :

http://www.e-stdev.org/service?wsdl

 

HOW DOES IT WORK?

Here is a sample client application that uses Apache Axis libraries to access the Benchmarking Web Services :

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;

public class Test {

public static void main(String args[]) {

try {

Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress( new java.net.URL("http://www.e-stdev.org/service?wsdl"));
call.setOperationName( new QName("urn:cominfo", "getStatsMDG") );
call.addParameter( "countryCode", XMLType.XSD_STRING, ParameterMode.IN );
call.addParameter( "year", XMLType.XSD_STRING, ParameterMode.IN );
call.setReturnType( XMLType.XSD_STRING );

String st = (String) call.invoke( new Object[] { "10","2000" } );
System.out.println(st);

} catch( Exception e ) {

e.printStackTrace();

}

}

}


Country Codes

You will need the following country code table to call Benchmarking Web Services:


CODE

COUNTRY NAME

1Afghanistan
2Albania
3Algeria
4American Samoa
5Andorra
6Angola
7Anguilla
8Antigua and Barbuda
9Argentina
10Armenia
11Aruba
12Australia
13Austria
14Azerbaijan
15Bahamas
16Bahrain
17Bangladesh
18Barbados
19Belarus
20Belgium
21Belize
22Benin
23Bermuda
24Bhutan
25Bolivia
26Bosnia and Herzegovina
27Botswana
28Brazil
29British Virgin Islands
30Brunei Darussalam
31Bulgaria
32Burkina Faso
33Burundi
34Cambodia
35Cameroon
36Canada
37Cape Verde
38Cayman Islands
39Central African Republic
40Chad
41Channel Islands
42Chile
43China
44China; Hong Kong Special Administrative Region
45China; Macao Special Administrative Region
46Colombia
47Comoros
48Congo
49Cook Islands
50Costa Rica
51Cote d'Ivoire
52Croatia
53Cuba
54Cyprus
55Czech Republic
56Czechoslovakia [former]
57Democratic Republic of the Congo
58Democratic Yemen [former]
59Denmark
60Djibouti
61Dominica
62Dominican Republic
63Ecuador
64Egypt
65El Salvador
66Equatorial Guinea
67Eritrea
68Estonia
69Ethiopia
70European Union (EU)
71Faeroe Islands
72Falkland Islands (Malvinas)
73Fiji
74Finland
75France
76French Guiana
77French Polynesia
78Gabon
79Gambia
80Georgia
81Germany
82Ghana
83Gibraltar
84Greece
85Greenland
86Grenada
87Guadeloupe
88Guam
89Guatemala
90Guinea
91Guinea-Bissau
92Guyana
93Haiti
94Honduras
95Hungary
96Iceland
97India
98Indonesia
99Iran (Islamic Republic of)
100Iraq
101Ireland
232Isle of Man
102Israel
103Italy
104Jamaica
105Japan
106Jordan
107Kazakhstan
108Kenya
109Kiribati
110Korea; Democratic People's Republic of
111Korea; Republic of
112Kuwait
113Kyrgyzstan
114Lao People's Democratic Republic
115Latvia
116Lebanon
117Lesotho
118Liberia
119Libyan Arab Jamahiriya
120Liechtenstein
121Lithuania
122Luxembourg
123Madagascar
124Malawi
125Malaysia
126Maldives
127Mali
128Malta
129Marshall Islands
130Martinique
131Mauritania
132Mauritius
233Mayotte
133Mexico
134Micronesia; Federated States of
135Monaco
136Mongolia
137Montserrat
138Morocco
139Mozambique
140Myanmar
141Namibia
142Nauru
143Nepal
144Netherlands
145Netherlands Antilles
146New Caledonia
147New Zealand
148Nicaragua
149Niger
150Nigeria
151Niue
152Northern Mariana Islands
153Norway
154Occupied Palestinian Territory
155Oman
156Pakistan
157Palau
158Panama
159Papua New Guinea
160Paraguay
161Peru
162Philippines
163Poland
164Portugal
165Puerto Rico
166Qatar
167Republic of Moldova
168Reunion
169Romania
170Russian Federation
171Rwanda
172Saint Helena
173Saint Kitts and Nevis
174Saint Lucia
175Saint Pierre and Miquelon
176Saint Vincent and the Grenadines
177Samoa
178San Marino
179Sao Tome and Principe
180Saudi Arabia
181Senegal
182Serbia and Montenegro
183Seychelles
184Sierra Leone
185Singapore
186Slovakia
187Slovenia
188Solomon Islands
189Somalia
190South Africa
191Spain
192Sri Lanka
193Sudan
194Suriname
195Swaziland
196Sweden
197Switzerland
198Syrian Arab Republic
1000Taiwan, China
199Tajikistan
200Thailand
201The former Yugoslav Republic of Macedonia
202Timor-Leste
203Togo
204Tokelau
205Tonga
206Trinidad and Tobago
207Tunisia
208Turkey
209Turkmenistan
210Turks and Caicos Islands
211Tuvalu
212Uganda
213Ukraine
214Union of Soviet Socialist Republics [former]
215United Arab Emirates
216United Kingdom
217United Republic of Tanzania
218United States
219United States Virgin Islands
220Uruguay
221Uzbekistan
222Vanuatu
223Venezuela
224Viet Nam
225Wallis and Futuna Islands
226Western Sahara
227Yemen
228Yemen Arab Republic [former]
229Yugoslavia [former Socialist Federal Republic]
230Zambia
231Zimbabwe