- Running a procedure on a SOAP server
Running a procedure on a SOAP server
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 = 94010
SOAP.Name = "ZipCode"
SOAP.Type = 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))
// Display the error returned by the SOAP server
This page is also available for…