Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0
Syntax
Code Block
languagenone
set aRequestObject = getRestHttpRequest()
Semantics

Returns the request details as provided by the HTTP call. The return object is of type Base Components.Add Ons.REST.Request, which is part of the base components of the Designer.

Info
iconfalse

getRestHttpRequest() is only applicable in REST service context. In other contexts, e.g. if called via a SOAP shadow port (and thus SOAP context), getRestHttpRequest() will return NULL. Use getServiceContext or getServiceContextValue in such cases.

SubstitutablesaRequestObject

An object of type Base Components.Add Ons.REST.Request:

Examples
Code Block
languagenone
set aRequestObject = getRestHttpRequest();
Tip

Reading the REST request headers is e.g. important to implement REST service authentication.