/// <remarks/> public void updateAsync(UpdateDirectEmailRequest updateRequest) { this.updateAsync(updateRequest, null); }
/// <remarks/> public void updateAsync(UpdateDirectEmailRequest updateRequest, object userState) { if ((this.updateOperationCompleted == null)) { this.updateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnupdateOperationCompleted); } this.InvokeAsync("update", new object[] { updateRequest}, this.updateOperationCompleted, userState); }
public String updateDirectEmail(String directEmailId, String subject, String fromName, String htmlSource) { if (logger.IsDebugEnabled) { logger.Debug("createDirectEmail:directEmailId=" + directEmailId + ",subject=" + subject + ",fromName=" + fromName); } String result; UpdateDirectEmailRequest request = new UpdateDirectEmailRequest(); try { request.id = directEmailId; request.subject = subject; request.fromName = fromName; request.htmlSource = htmlSource; request.textSource = htmlSource; //request. IDResponse response = directEmailService.update(request); result = response.id; } catch (System.Web.Services.Protocols.SoapException ex) { if (!Util.isCodeExist(ex.Detail) || Util.getExistId(ex.Detail).Equals("")) { result = ex.Detail.InnerXml; if (logger.IsDebugEnabled) { logger.Debug("error happens in creating direct email, error is" + result); } throw new Exception(ex.Detail.InnerXml); } result = Util.getExistId(ex.Detail); } return result; }