1

According to this IIB v10 link application/x-www-form-urlencoded form data parameters are not supported for a Rest Request Node.

https://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/bi12026_.htm

Is this still the case for IIB 11? have they included support.

Is there another way to call a back-end API having form data parameters in the swagger file?

Thanks in advance.

Yasothar
  • 435
  • 1
  • 7
  • 24

2 Answers2

2

I got this done by a work around. Used an HTTP Request Node with the following ESQL in a compute node.

SET OutputRoot.HTTPRequestHeader."Content-Type" = 'application/x-www-form-urlencoded';
SET OutputLocalEnvironment.Destination.HTTP.QueryString.grant_type = 'client_credentials';

I know this is not an answer but this worked and retrieved my token.

Hope this helps to someone.

Rudy Vissers
  • 5,267
  • 4
  • 35
  • 37
Yasothar
  • 435
  • 1
  • 7
  • 24
  • I see you put message as query string, but do you have any idea on how to send Form Data to this request, if we want to send data of grant_type, username and password etc. My requirement is send REST call with HTTPRequest with Form Data – Hari Feb 02 '21 at 02:34
0

You will need to use BLOB domain in order to send a request with "x-www-form-urlencoded" header content-type in IIB. Check below links for reference:

Example1

Example2

Kingo Mostafa
  • 357
  • 5
  • 21