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
// Standard call that uses 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)
// The action must have the following syntax "urn:<Web service name>/FunctionName"
// <Nom du Webservice>: often this is the name of the wsdl file (without the extension)
SOAPRunXML("http://localhost/webservice/", byBuffer, "urn:MyWebservice/MyFunction")
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: 02/01/2025

Send a report | Local help