PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Builds the SOAP request for calling a Webservice function.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 22
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Standard call that is using the full call to a WebService method
stParam1 is Param1
stParam1.String = "a string"
stParam1.Int = 2
stRet is Result1
stRet = MyFunction(stParam1)

// Equivalent call while repairing the buffer and using the SOAPExecuteXML function
stParam1 is Param1
stParam1.String = "a string"
stParam1.Int = 2
byBuffer is Buffer = SOAPPrepare(MyFunction, stParam1)
SOAPExécuteXML("http://localhost/webService/", byBuffer, "MyFunction")
Syntax
<Result> = SOAPPrepare(<Function Name> [, <Parameter 1> [, ... [, <Parameter N>]]])
<Result>: Buffer
XML buffer containing the generated SOAP request.
<Function Name>: Character string (with or without quotes)
Webservice function for which the SOAP request must be built.
<Parameter 1>: Variant
First parameter of the Webservice function.
<Parameter N>: Variant
Nth parameter of Webservice function.
Remarks
SOAPPrepare SOAPPrepare builds the SOAP request that would be sent to the Webservice 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230xml.dll
Windows Mobile wp230xml.dll
Linux wd230xml.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment