PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
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.
Component : wd240xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment