My Oracle Support Banner

How To Pass Raw String With Parameters For A Webservice Call In Groovy (Doc ID 2527814.1)

Last updated on OCTOBER 19, 2020

Applies to:

Oracle Fusion Engagement Cloud Service - Version 11.13.18.05.0 and later
Information in this document applies to any platform.

Goal

On : 11.13.18.05.0 version, Sales, Sales Catalog

User is creating a rest webservice call using groovy, using the code below, and I want to pass raw text in the request body. What are all the parameters available for the conn object in the code below??

/* GROOVY CODE */
try{
  def conn = adf.webServices.FRI_ERP_getToken
  def httpHeaders = ['Content-Type':'application/x-www-form-urlencoded']
  conn.requestHTTPHeaders = httpHeaders // --> setting the headers
/* How do I send "username=XXXXXX@HML&grant_type=XXXXX" in the request body?? */
  def result = conn.GET()
}catch(e){throw new oracle.jbo.ValidationException("ERRO: ${e}")}
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.