/// <remarks/> public void getImportStatusAsync(ImportIDRequest getImportStatusRequest, object userState) { if ((this.getImportStatusOperationCompleted == null)) { this.getImportStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetImportStatusOperationCompleted); } this.InvokeAsync("getImportStatus", new object[] { getImportStatusRequest}, this.getImportStatusOperationCompleted, userState); }
public importStatus getImportStatus(String importId) { if (logger.IsDebugEnabled) { logger.Debug("getImportStatus:importId=" + importId); } importStatus result; cn.tripolis.dialogue.import.ImportIDRequest request = new cn.tripolis.dialogue.import.ImportIDRequest(); try { request.importId = importId; cn.tripolis.dialogue.import.ImportStatusResponse response = importService.getImportStatus(request); result = response.importStatus; // cn.tripolis.dialogue.import.importStatus.ENDED } 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 ftp contact, error is" + ex.Detail.InnerXml); } throw new Exception(ex.Detail.InnerXml); } result = cn.tripolis.dialogue.import.importStatus.TRANSFERING; } return result; }
/// <remarks/> public void getImportStatusAsync(ImportIDRequest getImportStatusRequest) { this.getImportStatusAsync(getImportStatusRequest, null); }
private String getImportStatus(String importId) { if (logger.IsDebugEnabled) { logger.Debug("getImportStatus:importId=" + importId); } String result = OK_RESULT; cn.tripolis.dialogue.import.ImportIDRequest request = new cn.tripolis.dialogue.import.ImportIDRequest(); try { request.importId = importId; cn.tripolis.dialogue.import.ImportStatusResponse response = importService.getImportStatus(request); result = response.importStatus.ToString(); } catch (System.Web.Services.Protocols.SoapException ex) { if (logger.IsDebugEnabled) { logger.Debug("error happens in get contact database fields, error is" + ex.Detail.InnerXml); } throw new Exception(ex.Detail.InnerXml); } return result; }