# Web Nodes

# Node: HTTP Request

Use a http request node to make any http based outbound calls.

The http request node can invoke an http endpoint providing the http url. It supports both http and https endpoints. The url can be passed either directly by setting the url string or by passing it as payload or variable.

PUT amd POST methods use msg.payload as a http body.

# Properties

  • Method - http methond: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
  • URL - url string or variable containing url.
  • Return - format of the response: UTF String, binary buffer, parsed JSON
  • Timeout - timeout of the call in milliseconds.
  • Max Retries - maximum number of retries when receiving 4xx or 5xx errors. 0 to disable retries, 2 default. Retries are invoked exponentially.
  • Follow redirect - automatically follow redirects, default true
  • Max redirects - maximum number of redirects to follow before throwing error. 10 default
  • Security - None, Basic auth, Bearer token
  • Headers - list of key, value pairs of http headers. Optional

# Adding custom headers

It is also possible to set the header key value pair under the msg.headers field. The key value can be set using Set-property node or Function node. Eg: The below given is the implementation for adding a header with the key mycustomheader for the outbound HTTP Req node.

# Setting header using set-property node


UsingSetPropertyForHeaders

# Setting header using Function node


UsingFunctionForHeaders

# Example

How to use HTTP Req node.

# Node: SOAP Request

Use a SOAP request node to make any http based outbound calls with SOAP based web service request.

The SOAP request node can invoke an http endpoint providing the http url. It supports both http and https endpoints. The WSDL url can be passed along with the operation to be invoked.

The node also provides the option for setting security. Following application security options are supported basic auth, digest, bearer token.