by MarkC
16. March 2010 16:05
All our data capture and validation web services are available via SOAP, REST (simple XML), Ajax and ADO Recordset interfaces. Here I'll take a quick look at the REST interface to our postcode lookup service.
The main URL for the postcode lookup service is http://webservices.data-8.co.uk/addresscapture.asmx, and the main operation within the service to retrieve a list of addresses within a postcode is called GetFullAddressSimple. This method takes 5 parameters:
- username - your Data8 username
- password - your Data8 password
- licence - the type of license you have for the service, e.g. WebClickFull for website integration or InternalUserFull for internal line-of-business software integration
- postcode - the postcode to get the addresses from
- building - an optional building name or number to search for within the postcode
Combining these bits of information gives us the final URL to get address details:
http://webservices.data-8.co.uk/addresscapture.asmx/GetFullAddressSimple?username=your-username&password=your-password&licence=InternalUserFull&postcode=CH65+2HQ&building=
This URL returns an XML document containing all the details of the matching addresses ready for you to display to the user of your application or website.
If you have any questions about this or any of the other interfaces to our web services, please don't hesitate to get in touch on 0151 355 4555 or email info@data-8.co.uk for assistance.