Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accesing a Web Service with VFP
Message
De
29/04/2020 02:29:34
 
 
À
28/04/2020 20:55:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
01674162
Message ID:
01674198
Vues:
69
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform