//Interface static VisTrakGateway() { // _Client = new VisTrakWebService(); _state = true; _address = _Client.Url; }
public static VisTrakResult Search(string firstName, string lastName, string user1, string host, int group, string searchType) { // VisTrakResult result = null; try { //Create reporting service web client proxy _Client = new VisTrakWebService(); _Client.Credentials = System.Net.CredentialCache.DefaultCredentials; result = _Client.Search(firstName, lastName, user1, "", "", "", "", "", "", "", "", "", host, group, searchType); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException fe) { _Client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException(ce.Message); } return(result); }