Beispiel #1
0
        public QlikViewService()
        {
            _client = new QMSAPI.QMSBackendClient();
            ServiceKeyClientMessageInspector.ServiceKey = _client.GetTimeLimitedServiceKey();
            List <ServiceInfo> MyQVSInfo = _client.GetServices(ServiceTypes.QlikViewServer);

            this._serviceInfo = MyQVSInfo.First();
        }
Beispiel #2
0
        public QlikViewService(string server, string port)
        {
            _client = new QMSAPI.QMSBackendClient();
            _client.Endpoint.Address = new System.ServiceModel.EndpointAddress(string.Format("http://{0}:{1}/QMS/Service", server, port));
            ServiceKeyClientMessageInspector.ServiceKey = _client.GetTimeLimitedServiceKey();
            List <ServiceInfo> MyQVSInfo = _client.GetServices(ServiceTypes.QlikViewServer);

            this._serviceInfo = MyQVSInfo.First();
        }
Beispiel #3
0
        private bool PingService()
        {
            try
            {
                _client.Ping();
            }
            catch (Exception ex)
            {
                if (ex.Message.ToString() == "Service key has expired")
                {
                    ServiceKeyClientMessageInspector.ServiceKey = _client.GetTimeLimitedServiceKey();
                }
                else
                {
                    return(false);
                }
            }

            return(true);
        }