I've been looking for free Web Services to test an application. But, it seems like any Web Service I find uses a single (complex, or non-primitive) struct in the result parameter to return all the data to me.
Main question to answer: Where can I find free Web Services that use simple (primitive) data types (e.g. int, boolean, unsignedLong, even ArrayOfString)?
So far, I have looked through:
- http://www.webservicex.net/
- http://www.xmethods.net/
- http://ws.cdyne.com/
- http://www.innergears.com/WebServices/
Basically, I'm looking for a WSDL like:
POST /Services/ExampleService.asmx HTTP/1.1
Host: example.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.example.com/Services/GetCityFromZip"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCityFromZip xmlns="http://www.bplogix.com/">
<Zip>string</Zip>
</GetCityFromZip>
</soap:Body>
</soap:Envelope>
and
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCityFromZipResponse xmlns="http://www.bplogix.com/">
<GetCityFromZipResult>string</GetCityFromZipResult>
<State>string</State>
</GetCityFromZipResponse>
</soap:Body>
</soap:Envelope>
but, I can only find Web Services like this:
POST /WebServices/CityStateByZip.asmx HTTP/1.1
Host: www.innergears.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.innergears.com/WebServices/CityStateByZip/GetCityStateByZip"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCityStateByZip xmlns="http://www.innergears.com/WebServices/CityStateByZip">
<ZipCode>string</ZipCode>
</GetCityStateByZip>
</soap:Body>
</soap:Envelope>
and
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCityStateByZipResponse xmlns="http://www.innergears.com/WebServices/CityStateByZip">
<GetCityStateByZipResult>
<string>string</string>
<string>string</string>
</GetCityStateByZipResult>
</GetCityStateByZipResponse>
</soap:Body>
</soap:Envelope>