We have a .NET 2 SOAP web service meant for consumption by another app that is internal to our organisation. The web service returns a .NET dataset like so:
public System.Data.DataSet GetStatementFor(string contractList,
System.DateTime startDate, System.DateTime endDate)
Now in one of the use cases it is necessary to get to the DataSet object's XML. Now obviously the DataSet is being returned via XML in any case, so I was wondering if it is possible to just use the XML that represents it in SOAP. Normally the XML is wrapped into a DataSet object which I will then need to serialize once again. Can I skip these last two steps and still return a DataSet for the cases where it makes sense?