public List <VoucherInfo> SelectVouchersByRetailer(int countryId, int retailerId) { IScanService client = null; try { var keys = Security.CreateInstance().GenerateSecurityKeys(); client = ScanServiceClient.CreateProxy(); return(new List <VoucherInfo>(client.ReadData(countryId, retailerId, keys.Item1, keys.Item2))); } finally { ((IDisposable)client).DisposeSf(); } }