Get the countries WSDL or usage information
Get the countries WSDL (with ?wsdl) or usage information.
GET /api/soap/countries?wsdl returns a WSDL 1.1 document with SOAP 1.1 and 1.2 bindings. Without ?wsdl you get JSON listing the operations, the available country codes and a sample envelope.GET … returns a WSDL 1.1 document with SOAP 1.1 and 1.2 bindings. Without ?wsdl you get JSON listing the operations, the available country codes and a sample envelope.
Responses
- 200
- WSDL (text/xml) or usage JSON.
Example
curl -X GET "https://api.testingapis.com/api/soap/countries" \
-H "X-TestingApis-Key: YOUR_API_KEY"{
"service": "Countries",
"wsdl": "https://api.testingapis.com/api/soap/countries?wsdl",
"namespace": "http://example.com/countries",
"operations": ["GetCountryInfo(countryCode)", "ListCountries()"],
"codes": ["US", "GB", "… 8 more items"],
"sample": <soap:Envelope xmlns:soap=\http://schemas.xmlsoap.org/soap/envelope/\><soap:Body><GetCountryInfo xmlns=\http://example.com/countries\…
}Sign in to see the details
The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.