Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML To Dataset
Message
De
20/03/2008 05:11:14
 
 
À
20/03/2008 00:44:21
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01303148
Message ID:
01303760
Vues:
21
>Arrrggghhh!! You guys are making this way too complex! DataSet.GetXml() returns exactly what you posted Viv:
>
>
><?xml version="1.0" encoding="utf-8" ?>
><People>
>  <Person>
>    <FirstName>Fred</FirstName>
>    <LastName>Bloggs</LastName>
>  </Person>
>  <Person>
>    <FirstName>Joe</FirstName>
>    <LastName>Smith</LastName>
>  </Person>
></People>
>
Hi,
I know. But I thought we were talking about whether to return a Dataset from a web service *as* a Dataset or as some other representation of the data. I was simply attempting to point out that if you know the client is a .net client then you can just return the Dataset so that it is directly usable by the client - otherwise a simpler representation will almost always be preferable. And Yes .GetXML() is a simple way of obtaining a simpler piece of XML. So, in essence, the pros and cons of 'return Dataset' v 'return Dataset.GetXML()' or similar
Best,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform