public override bool Execute()
 {
     byte[] file = File.ReadAllBytes(this.FilePath);
     FilePublishingServiceProxy.FilePublishingService service = new PaulStovell.TrialBalance.Website.UploadBuildTask.FilePublishingServiceProxy.FilePublishingService();
     service.Url = this.WebServiceUrl;
     string result = service.UploadManagedFile(this.Username, this.Password, this.FileName, this.ContentType, file);
     this._url = result;
     return true;
 }
 public override bool Execute()
 {
     FilePublishingServiceProxy.FilePublishingService service = new PaulStovell.TrialBalance.Website.UploadBuildTask.FilePublishingServiceProxy.FilePublishingService();
     service.Url = this.WebServiceUrl;
     for (int ixFile = 0; ixFile < LocalFilePaths.Length; ixFile++) {
         this.Log.LogMessage(MessageImportance.Normal, "Uploading file \"{0}\" as \"{1}\"...", this.LocalFilePaths[ixFile].ItemSpec, this.RemoteVirtualFilePaths[ixFile].ItemSpec);
         byte[] fileContent = File.ReadAllBytes(this.LocalFilePaths[ixFile].ItemSpec);
         service.UploadUnmanagedFile(this.Username, this.Password, this.RemoteVirtualFilePaths[ixFile].ItemSpec, fileContent);
     }
     return true;
 }