Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Guidance on creating a web service
Message
From
07/04/2006 19:01:00
 
 
To
07/04/2006 18:54:14
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01111307
Message ID:
01111625
Views:
12
>Thanks. The next thing is, how do you (or others) suggest I go about setting up the web service, and what does the app make a call to it? I am totaly new at this. No experience at all.

Well, I assume you would like to do it both ways in VFP as this is in VFP forum. So, I would recommend an XML Web Service in this case, where you could XmltoCursor() on the client side to obtain a cursor. From then, you have everything in records ready for your analysis.

Basically, the client would probably pass a username, a password and the directory of which the required listing is demanded. Or, you can do a Login() method and create a session that you will pass instead of always passing the username and password for every method.

As for the server side, basically, you do as in VFP with an ADIR(), for example, and would build a cursor. Then, before returning the string, just do CursorToXml() so the XML string would be passed.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform