views:

962

answers:

1

My Web Service Signature is

[WebMethod]
public DataSet GetPatientLastWeighing(int pFacilityID,string pSessionID)
{
}
+3  A: 

You don't have much control over DataSet/DataTable serialization. IMO, the best answer here is: don't use DataSet/DataTable on web-services. Personally, I'd declare a class with the properties I need, attribute them as I like, and return an array (T[]) or List<T> of that type.

Far cleaner, you have more control over the xml, and it is usable from different types of client (not just .NET).

Marc Gravell