ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / HTTP functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
OpenAPIToHTTP (Function)
In french: OpenAPIVersHTTP
Builds the HTTP request to call a function of an API.
New in version 2025
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications from version 2025 Update 1.
Example
// Appel classique utilisant l'appel complet à une méthode de Webservice
stParam1 is Param1
stParam1.Chaîne = "une chaîne"
stParam1.Entier = 2
stRet is MonResult
stRet = MaFonction(stParam1)
// Récupération du Buffer pour appel via la fonction OpenAPIVersHTTP
stParam1 is Param1
stParam1.Chaîne = "une chaîne"
stParam1.Entier = 2
cMaRequête is httpRequest = OpenAPIToHTTP(MaFonction, stParam1)
HTTPSend(cMaRequête)
Syntax
<Result> = OpenAPIToHTTP(<Function> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: httpRequest variable
httpRequest variable corresponding to the generated HTTP request.
<Function>: Character string
Name of the function for which the HTTP request must be built.
<Parameter 1>: Optional variant
First parameter expected by the function.
<Parameter N>: Optional variant
Nth parameter expected by the function.
Remarks
OpenAPIToHTTP builds the HTTP request as a variable of type httpRequest, which can then be sent to the API using the following syntax:
<API function>([<Function parameter 1> [, ... [<Function parameter N>]]])
The generated request can then be sent using HTTPSend.
Component: wd300com.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help