My Oracle Support Banner

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

Last updated on DECEMBER 22, 2020

Applies to:

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


On : 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??

  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}")}


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

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