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