Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Guidance on creating a web service
Message
De
07/04/2006 19:01:00
 
 
À
07/04/2006 18:54:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01111307
Message ID:
01111625
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform