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

  1. using Business.api.addressy;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Configuration;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Business.Addressy
  9. {
  10. public class ServiceApi
  11. {
  12. public string _key { get; set; }
  13. api.addressy.PostcodeAnywhere_SoapClient _SoapClient { get; set; }
  14. public ServiceApi()
  15. {
  16. _key = ConfigurationManager.AppSettings["loqatekey"].ToString();
  17. _SoapClient = new api.addressy.PostcodeAnywhere_SoapClient();
  18. }
  19. public Capture_Interactive_Find_v1_10_ArrayOfResults Find_v1_10(string search)
  20. {
  21. return _SoapClient.Capture_Interactive_Find_v1_10(_key, search, true, null, null, "GB", 20, "en-gb", false, "", "");
  22. }
  23. public Capture_Interactive_Find_v1_10_ArrayOfResults Find_v1_10(string search, string container)
  24. {
  25. return _SoapClient.Capture_Interactive_Find_v1_10(_key, search, true, container, "", "GB", 20, "en-gb", false, "", "");
  26. }
  27. }
  28. }