websphereibm-integration-busibm-app-connect

IBM ACE - Override Base URL (RestRequestNod)


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'; 

Solution

  • 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.