public WSResponse_EDXStatus GetEDXTaskStatus(Guid execId)
        {
            QmsAPI.QMSClient apiClient = new QmsAPI.QMSClient();

            // retrieve a time limited service key
            ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();

            ServiceInfo qdsService = apiClient.GetServices(ServiceTypes.QlikViewDistributionService).FirstOrDefault();

            if (qdsService != null)
            {
                EDXStatus executionStatus = null;
                executionStatus = apiClient.GetEDXTaskStatus(qdsService.ID, execId);
                WSResponse_EDXStatus retVal = new WSResponse_EDXStatus();
                retVal.SetEDXStatus(executionStatus);
                return(retVal);
            }
            return(null);
        }
Пример #2
0
        public WSResponse_EDXStatus GetEDXTaskStatus(Guid execId)
        {
            QmsAPI.QMSClient apiClient = new QmsAPI.QMSClient();

            // retrieve a time limited service key
            ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();

            ServiceInfo qdsService = apiClient.GetServices(ServiceTypes.QlikViewDistributionService).FirstOrDefault();

            if (qdsService != null)
            {
                EDXStatus executionStatus = null;
                executionStatus = apiClient.GetEDXTaskStatus(qdsService.ID, execId);
                WSResponse_EDXStatus retVal = new WSResponse_EDXStatus();
                retVal.SetEDXStatus(executionStatus);
                return retVal;
            }
            return null;
        }