Combine schema and data from 2 seperate server calls

Hello

If I understand you correct you need to call the standard DataAbstract data service not using a DataAdapter instance and you need to retrieve table data and schema from it. Here is the code that can help you with it:

		var dataTable = new DataTable();

		// Create service proxy
		var svc = new DataAbstractService_Proxy(new BinMessage(), new IpHttpClientChannel { TargetUrl = "http://localhost:8099/bin"}, "DataService");

		// Get serialized data
		var tableName = "Customers";

		// Get data (includes both table AND schema
		var data = svc.GetData(new[] { tableName }, new TableRequestInfo[] { new TableRequestInfoV5 { IncludeSchema = true } });

		// Deserialize data
		var streamer = new Bin2DataStreamer();
		streamer.InitializeStreamer(data, StreamerInitialization.ReadFromBeginning);
		streamer.ReadDataTable(tableName, dataTable, true, true);

Hope that helps