public TransferFileInfo[] GetTransferFile(int countryId, int beginNumber, int endNumber, string siteCode) { IScanService client = null; try { client = ScanServiceClient.CreateProxy(Program.SCAN_URL); var keys = Security.CreateInstance().GenerateSecurityKeys(); return(client.GetTransferFile(countryId, beginNumber, endNumber, siteCode, keys.Item1, keys.Item2)); } finally { ((IDisposable)client).DisposeSf(); } }