public DataTable GetTableFieldsDef(string tableName, bool onlyDisplayField) { using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient()) { byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser); byte[] receivedData = client.GetTableFieldsDef(loginTicket, tableName, onlyDisplayField); return(ZipTools.DecompressionDataSet(receivedData).Tables[0]); } }