Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to pass a table of data
Message
 
À
07/12/2004 15:31:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00967555
Message ID:
00967592
Vues:
7
Bonnie is right.

Don't return .NET objects (like DataSets) from a webmethod. Instead, return XML. There is a difference in the way they are serialized (Diffgram vs. XML string). Besides, what if the client is not .NET? Would it know what to do with a diffgram? Newer version of foxpro know how to handle it but many platforms don't.

Returning Datasets or custom .NET objects is fine for remoting if you are sure the client is .NET.


>Bonnie,
>What's the difference? Passing a dataset you're already passing an XML,no?
>Cetin
>
>>Stephen,
>>
>>I don't recommend passing a DataSet to or from a WebService. Use an XML string instead. It's easy enough to serialize/deserialize a DataSet to/from XML.
>>
>>~~Bonnie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform