Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Cursor From Web Service
Message
De
31/01/2002 12:21:00
 
 
À
31/01/2002 11:51:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00613435
Message ID:
00613499
Vues:
10
>>What is the safest way to return a cursor from a web service so that it can be used by any? XML?
>
>I'd say so. Using XML means that any client that supports XML (which reall means, any platform that supports text) can parse your data.
>
>>If you use XML, how can you easily convert it to an ADO recordset for VB or a native VFP cursor in Fox?
>
>There are quite a few ways to do this. ADO can typically load from an XML file easily. In both enviornments, you can use the DOM parser to read data into a cursor. In VP7, you can do XMLToCursor() dpending on how nice the XML is. If you use CursorToXML() on the server, XMLToCursor() will bring it back fine. With .NET, the XML Text Reader makes quick work on reading XML, so whatever the environment, XML support is pretty good, and is always getting better.


Mike,

Thanks. So would you say CURSORTOXML() is pretty safe for creating the XML? Can .Net easily create a Dataset from this? ADO?

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform