Last post Nov 10, 2013 02:52 PM by yahya01
Nov 10, 2013 03:55 AM|yahya01|LINK
I need to pass a DataSet via web service however I am not sure if all client apps would be .net and would be aware of DataSet. In which case what is the preferred method of passing a DatSet like structure from web service to the client app?
Nov 10, 2013 05:10 AM|Sulax|LINK
The simplest and most interoperable way is to serialize the dataset to XML with the GetXml() method, then pass that as a string from the web service. The client can then deserialize it with the ReadXml() method.
We have consumed a service which did it this way, and it worked great.
The alternative is to expose the DataSet class in the service, and return the dataset object. But this will complicate things, especially if any client should be non-.NET.
Nov 10, 2013 02:52 PM|yahya01|LINK
My WebMethod is returning <NewDataSet />, as query in webmethod is not returning any records based on given criteria. This is not a problem on its own but it is causing error in calling method. Image below. What am I missing?