AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Área de texto enriquecido
  • Running a procedure on a SOAP server
SOAPError (Example)
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[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
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local