You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
using Business.api.addressy;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Business.Addressy
|
|
{
|
|
|
|
|
|
|
|
public class ServiceApi
|
|
{
|
|
|
|
public string _key { get; set; }
|
|
api.addressy.PostcodeAnywhere_SoapClient _SoapClient { get; set; }
|
|
public ServiceApi()
|
|
{
|
|
_key = ConfigurationManager.AppSettings["loqatekey"].ToString();
|
|
_SoapClient = new api.addressy.PostcodeAnywhere_SoapClient();
|
|
}
|
|
|
|
public Capture_Interactive_Find_v1_10_ArrayOfResults Find_v1_10(string search)
|
|
{
|
|
|
|
return _SoapClient.Capture_Interactive_Find_v1_10(_key, search, true, null, null, "GB", 20, "en-gb", false, "", "");
|
|
|
|
}
|
|
|
|
public Capture_Interactive_Find_v1_10_ArrayOfResults Find_v1_10(string search, string container)
|
|
{
|
|
|
|
return _SoapClient.Capture_Interactive_Find_v1_10(_key, search, true, container, "", "GB", 20, "en-gb", false, "", "");
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|