REST adapter variable substitution - rsugio/po GitHub Wiki

Information below is actual for NW 7.50 SP31

Available variables

  • {http_result} -- response body without any modifications. However if JSON response format is used then result is XML merged
  • {http_result_xml} -- response body after JSON -> XML convertion
  • {http_status} -- HTTP response status code (eg. 401)
  • {http_status_text} -- HTTP response status text (eg. "Authentication Required")

Additionally some dynamic list of variables:

  • variables in format {XXXXX} from Operation Rules of REST adapter (columns Variable and Value)

Parameters which affect variable parsing or behaviour

  • skipCustomResultConversion -- if JSON response format is selected and parameter is true then {http_result} will be original response (JSON) and not XML
  • mergeHTTPResultWithoutWrapper -- if JSON response format is selected and parameter is true then {http_result} will be inserted without root tag
  • useDefaultCharsetForCustomHandling -- if true the final result will be re-interpreted (from UTF-8) as ISO-8859-1 charset string otherwise UTF-8 charset will be used. Note that {http_result} original charset will be taken from channel response charset setting