PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 defining the buffer
// and using SOAPRunXML
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
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.
Business / UI classification: Business Logic
Component: wd270xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment