IBM ACE - Override Base URL (RestRequestNod)

745 Views Asked by At

I'm trying to invoke a REST API defined by importing existing swagger (with no host property in it). I want to set it or override via compute node using the code snippets below but I got an error.

Compute node (in place before rest request node) snippets:
    --Call CopyMessageHeaders();
    --Call    CopyEntireMessage();
    SET OutputLocalEnvironment.Destination.REST.Request.BaseURL = 'http://172.x.x.x:12110/cb/common-api'; 
1

There are 1 best solutions below

0
On BEST ANSWER

Update the Compute Node's Property called Compute mode to the value "LocalEnvironment and Message" so that the value set in LocalEnvironment tree in Compute node propagates forward to the next node in the message flow.