public QlikViewService() { _client = new QMSAPI.QMSBackendClient(); ServiceKeyClientMessageInspector.ServiceKey = _client.GetTimeLimitedServiceKey(); List <ServiceInfo> MyQVSInfo = _client.GetServices(ServiceTypes.QlikViewServer); this._serviceInfo = MyQVSInfo.First(); }
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(); }