ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Running a procedure on a SOAP server
SOAPGetResult (Example)
Running a procedure on a SOAP server
WINDEVUser code (UMC) The following code is used to run a procedure on a SOAP server. This procedure, named "Temperature", returns the temperature of a city identified by its zip code.
// Define the variable
ResExecute is boolean
 
// Define the parameters of the "Temperature" procedure that
// returns the temperature of a city identified by its zip code
SOAP.Value[1] = 94010
SOAP.Name[1] = "ZipCode"
SOAP.Type[1] = SOAPStringType
 
// Run the "Temperature" procedure
ResExecute = SOAPRun("http://www.Temp.com/Degree", "Temperature", "urn:Temp-Degree")
// Is the communication with the server successful?
IF ResExecute = True THEN
// Is the procedure successfully run?
IF SOAPGetResult(SOAPResult) <> "" THEN
// Display the result returned by the procedure
Info("The temperature is: " + SOAPGetResult(SOAPResult))
ELSE
// Display the error returned by the SOAP server
Error(SOAPError(SOAPErrMessage))
END
ELSE
Error(ErrorInfo(errMessage))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help