Esempio n. 1
0
 public void DeleteTempFile(String pathRemoteFile)
 {
     using (FileService.FileTransferServiceClient svc = new FileService.FileTransferServiceClient())
     {
         DeleteFileResponse response = svc.DeleteFile(new DeleteFileRequest()
         {
             TargetFileName = pathRemoteFile
         });
         if (response.Code != "0000")
         {
             throw new IOException(response.Message);
         }
     }
 }
Esempio n. 2
0
        public void DeleteAttachFileInTemp(String pathRemoteFile)
        {
            if (String.IsNullOrEmpty(pathRemoteFile))
            {
                throw new IOException(Resources.errorUploadDataBiz_001);
            }

            using (FileService.FileTransferServiceClient svc = new FileService.FileTransferServiceClient())
            {
                DeleteFileResponse response = svc.DeleteFile(new DeleteFileRequest()
                {
                    TargetFileName = pathRemoteFile
                });
                if (response.Code != "0000")
                {
                    throw new IOException(response.Message);
                }
            }
        }