Send Visual FoxPro data to a Servoy web service.

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Send Visual FoxPro data to a Servoy web service.

Postby AlanBourke » Wed Sep 19, 2012 3:21 pm

This is a very simple example of sending Visual FoxPro data to a Servoy web service as JSON.

It comprises a Visual FoxPro project and associated 'customers.dbf in the attached servoyjsondemo.zip.

The attached vfpwebservicedemo.servoy file is a Servoy 6 solution to create the Servoy web service end of things.

So to test, do the following:

Unzip the Visual FoxPro project somewhere.

Open main.prg in Visual FoxPro and amended the variables at the top to reflect your own Servoy server name and port.

Build the Visual FoxPro project:

Code: Select all
Build App servoyjsondemo from servoyjsondemo


Import the Servoy solution into Servoy.

Start the Servoy solution (Smart or Web client, doesn't matter).

Execute servoyjsondemo.app from the Visual Foxpro command window.

If it comes back with OK - 200 then check the Servoy console window to check what was received.

Cheers.
Attachments
servoyjsondemo.zip
(8.77 KiB) Downloaded 129 times
vfpwebservicedemo.servoy
(3.69 KiB) Downloaded 128 times
-------------------------------------------------------------------------------------------
Servoy SAN Developer
User avatar
AlanBourke
 
Posts: 195
Joined: Tue Aug 02, 2011 3:32 pm
Location: Dublin, Ireland

Return to How To

Who is online

Users browsing this forum: No registered users and 4 guests