Avatar of luciliacoelho
luciliacoelhoFlag for Portugal

asked on 

how can i do that


 I have to create a web service that sends the number of beneficiaries of social security and receive user data such as name, birth date, etc.
 How can I do this in VFP?
 Thanks
FoxPro

Avatar of undefined
Last Comment
jrbbldr
Avatar of jrbbldr
jrbbldr

I can't say how others might approach this, but I would create a Web Service with .NET and have its method deposit the request parameter(s) into a SQL Server table.

Then I would have the VFP application monitor the SQL Server table to see if there were pending records to be responded to.   If it found one, then it would acquire the appropriate data and put it back into the SQL Server table (most likely the same record although another 'architecture' could be used).

Then I would have the Web Service 'recognize' that the request has been 'answered' by 'seeing' the new data and then send back the data.

Good Luck


Avatar of jrbbldr
jrbbldr

Another approach would be to not use a TRUE Web Service, but instead create a VFP web 'listener'.

That can be done using one or more of the various HTTP ActiveX routines available to VFP.

If that were the approach used, VFP would 'receive' the request and then acquire the associated data and pass it back through another HTTP Post process (SOAP or not).

Good Luck
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

What you describe sounds like you need to consume or use a web service, not provide it.

Bye, Olaf.
ASKER CERTIFIED SOLUTION
Avatar of jrbbldr
jrbbldr

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
FoxPro
FoxPro

Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.

11K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo