Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Cursor From Web Service
Message
From
31/01/2002 11:51:50
 
 
To
31/01/2002 11:14:59
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00613435
Message ID:
00613474
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
>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.

>Or would you return specific types depending on the consumer?

Eh... unless you have a specific reason for doing this (like atronomical performance advantages), I'd try to keep my componetes standard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform