Data8's Telephone Directory Search web service provides a full directory enquiries
product delivered via web services.
Telephone numbers can be found using a combination of surname and town/postcode
searches. You can even find numbers when you are unsure of the spelling of a name
using our powerful wildcard matching technology.
Up to two hundred matching records are returned from each search, including names
and addresses as well as telephone numbers, enabling you to quickly locate your
customers.
The Telephone Directory Search service from Data8 is accessed through SOAP web services,
making it simple to use from any major programming language.
Web Service URLs
The service is available on the URL:
http://webservices.data-8.co.uk/TelephoneDirectory.asmx
The WSDL definition of the service is available at:
http://webservices.data-8.co.uk/TelephoneDirectory.asmx?WSDL
Example Code
The following C# code demonstrates retrieving a list of names, addresses and telephone
numbers matching a surname in a range of postcodes.
TelephoneDirectory proxy = new TelephoneDirectory();
Name name = new Name();
name.Surname = "Blogg*";
string[] towns = new string[] { "Chester" };
string[] postcodes = new string[] { "CH*" };
TelephoneDirectoryOutput result = proxy.DirectoryLookup(
"username",
"password",
name,
postcodes,
towns,
null);
if (!result.Status.Success)
throw new ApplicationException(result.Status.ErrorMessage);
if (result.Results.Length == 0)
{
MessageBox.Show("No telephone directory matches");
}
else
{
foreach (DirectoryLookupResult entry in result.Results)
{
StringBuilder builder = new StringBuilder();
builder.Append(entry.TelephoneNumber);
builder.Append(" ");
builder.AppendFormat("{0} {1} {2}",
entry.Name.Title,
entry.Name.Forename,
entry.Name.Surname);
builder.Append(", ");
builder.AppendFormat("{0} {1}, {2}, {3}",
entry.Premise,
entry.Street,
entry.Locality,
entry.Postcode);
ResultsListBox.Items.Add(builder.ToString());
}
}
The above price packs are suggestions and you can buy any number of lookups here