how can i do that

luciliacoelho
luciliacoelho used Ask the Experts™
on

 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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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


Commented:
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
Olaf DoschkeSoftware Developer

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

Bye, Olaf.
Commented:
Following Olaf's suggestion, I just did a Google search for    vfp consume web service

You might want to do the same and look at the info that the search returns.  

Good Luck

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial