Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are you using Typed DataSets?
Message
From
24/07/2003 15:19:17
 
 
To
24/07/2003 14:56:36
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00813140
Message ID:
00813245
Views:
6
Joel,

Nope, you're not dreaming ... you actually *can* have the WebService return a DataSet instead of the XML, but I recommend shying away from that practice for one main reason: If you do that, the WebService is then only useful to a .NET client. Any other client will not have a clue what to do with a .NET DataSet. Always returning an XML string solves that problem nicely.

Now, that said, we're only *planning* on using .NET clients to access the WebServices ... but ya know, ya never know. <g> To me, it just makes more sense to send back a more generic XML string.

~~Bonnie



>Bonnie,
>
>I think that answers my question. I've experimented with ReadXML before to read in data from VFP's CursorToXML(), but I guess I was thinking (hoping) that .NET and SOAP would handle the XML conversions for DataSets automatically, like it does for simple types. In other words, you return a DataSet from your method, the client receives the result as a DataSet, and SOAP/.NET takes care of all the XML stuff in the middle. I've never tried that though, so I could be dreaming. <g>
>
>Thanks.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform