This post originated from an RSS feed registered with .NET Buzz
by Peter G Provost.
Original Post: More About DataSets and Interop
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
I don't get your comment about "vague concerns over interoperability". Name a
non-Microsoft SOAP stack that can serialize a DataSet. I don't know of any. I'd call
that a real concern over interoperability. AFAIK, the schema for the DataSet wire
format isn't publicly available
I guess what I meant was that I didn't have any hard evidence about it. It felt wrong
precisely because I didn't know if a non-MS SOAP stack could deserialize it.
Now since the schema for a particular DataSet is available via the WriteXmlSchema
method, I decided to find out how hard it would be... it seems to me that you should
be able to deserialize it in any language.
To see what a DataSet schema looks like, I fired up Snippet
Compiler and entered the following code:
So it seems to me that anyone who wanted to could deserialize a DataSet, because
it is essentially just an XML Infoset at heart. The problem with using DataSets in
Web Services is not that they are proprietary, but that the way they are defined in
the WSDL is bad. I think maybe you could solve this with a WSDL First approach, but
I'm not sure.