ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / SOAP
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Builds the SOAP request for calling a web service function.
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 Result1
stRet = MaFonction(stParam1)

// Appel équivalent avec préparation du buffer 
// et utilisation de la fonction SOAPExécuteXML
stParam1 is Param1
stParam1.Chaîne = "une chaîne"
stParam1.Entier = 2
byBuffer is Buffer = SOAPPrepare(MaFonction, stParam1)
// L'action doit être de la forme "urn:<Nom du Webservice>/NomFonction"
// <Nom du Webservice>: souvent il s'agit du nom du fichier wsdl (sans l'extension)
SOAPRunXML("http://localhost/webService/", byBuffer, "urn:MonWebservice/MaFonction")
Syntax
<Result> = SOAPPrepare(<Function name> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Buffer
XML buffer containing the generated SOAP request.
<Function name>: Character string
Web service function for which the SOAP request must be built.
<Parameter 1>: Variant
First parameter of the web service function.
<Parameter N>: Variant
Nth parameter of web service function.
Remarks
SOAPPrepare SOAPPrepare builds the SOAP request that would be sent to the web service during a call to one of its functions without running the request.
Then, the generated buffer can be sent by SOAPRunXML.
The returned buffer contains the XML stream encoded in UTF8. The buffer does not contain the HTTP header (indicating the SOAP Action, the content-type, etc.). The headers are automatically added by SOAPRunXML.
Business / UI classification: Business Logic
Component: wd300xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help