Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataset or XML
Message
De
10/10/2003 21:13:27
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
10/10/2003 20:22:59
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00837727
Message ID:
00837742
Vues:
32
>>If the client is .NET, you can return a DataSet without doing anything special. Datasets are serializable out of the box.
>
>Ok, for that part it is ok. But, the Web Service is receiving its data into an XML string from another tier. Basically, that is a standard Visual FoxPro CURSORTOXML() string. I would like to convert that into a DataSet so it would be transmitted serialized as you said.

There are two ways to take XML and insert it into a DataSet. You can change the XML format and then Deserialize into a DataSet object, or you can start with a new DataSet and create/fill the DataTables as you step through the XML.

The first suggestion is more elegant, but the second suggestion is probably easier to code in a shorter amount of time.

************

A really cool idea is to build a class in VFP to take a cursor and generate XML that matches the format of XML serialized from a DataSet. Then the Web Service could receive a DataSet directly from VFP.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform