Forces the Web Service engine to immediately flush the response of the web service operation.
com.WebServiceEngine.Flush() RETURNING status INTEGER
The com.WebServiceEngine.flush() class method allows to return the response inside a high-level web service operation, before the end of the web service function.
When this method is used, any other web operation output parameter changes are ignored.
DEFINE echoBoolean_in, echoBoolean_out RECORD
    a_boolean  BOOLEAN ATTRIBUTES(XMLName="Boolean")
  END RECORD
MAIN
  DEFINE ret INTEGER
  ...
  WHILE true
    LET ret = com.WebServiceEngine.ProcessServices(-1)
    CASE ret
      WHEN 0
        DISPLAY "Request automatically processed."
      WHEN -31
        DISPLAY "Operation has been flushed."
      ...
  END WHILE
  ...
END MAIN
FUNCTION echoBoolean()
  DEFINE ret INTEGER
  -- Assign output parameter with input parameter
  LET echoBoolean_out.a_boolean = echoBoolean_in.a_boolean
  -- Immediate flush of web operation
  LET ret = com.WebServiceEngine.flush()
  IF ret != 0 THEN
     DISPLAY "ERROR Code : ",ret
     EXIT PROGRAM (1)
  END IF
  -- Changing the output parameters after flush() would have no effect.
END FUNCTION