Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accesing a Web Service with VFP
Message
From
29/04/2020 02:29:34
 
 
To
28/04/2020 20:55:04
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
01674162
Message ID:
01674198
Views:
70
>>
>>Luis, lots of guesswork here because I don't have the specs of the service (I don't even know what its purpose is), but you could eventually use the following as a template for the call:
>>
>>[...]
>>
>>Since the service is expecting url-encoded character data, the value of m.Parametros should be transformed accordingly. There are a few functions in VFP that do this, you may google for it, but just say something here if you couldn't find one.
>
>Thanks Antonio, I found a url encoding UDF at
>
>http://fox.wikis.com/wc.dll?vfp~GoogleTranslater~VB
>
>Applied to the "parametro" variable and it worked, like a charm. Now I have to make it parameterizable.
>
>Thank you very much

Great, Luis.

Remember to check on one of the available JSON VFP libraries, like Marco's nfJson at VFPX, to facilitate the encoding of the call parameters. They include arrays, so I'll assume that a linear single-level template won't be sufficient in some cases.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform