My Oracle Support Banner

Invoking 3rd Party REST Webservice Gives 406 Status Code (Doc ID 2783187.1)

Last updated on JUNE 09, 2021

Applies to:

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

Symptoms

On : 11.13.21.01.0 version, CX Integration

When invoking a 3rd party REST Webservice from the application, it returns a 406 status code. The same invoking of the WS from Postman is returning a 204 No Content status code

 

Payload used in Postman

{

   "Source-System": "Oracle",

   "Certification Type": "WLAN",

   "Certification ID": "123456"

}

Groovy script to invoke the 3rd party WS


if (getPrimaryRowState().isNew() || getPrimaryRowState().isModified())
{
  def conn = adf.webServices.myRest
  try
  {
     def httpHeaders=['Content-Type':'application/json']
     conn.requestHTTPHeaders=httpHeaders
     def payload =[Certification_ID :"123456",
       Certification_Type :"WLAN",
       Source_System :"Oracle",

       CertificateTemplate_c :"Online- Cert. Renewal"]
     conn.PUT(payload)
     println("Status:"+conn.statusCode)
  }
  catch(Exception e)
  {
     println("Status:"+conn.statusCode)
     println("Error:"+e)
  }
}

ERROR
-----------------------
[IMPL SPT] Status : 406

Error : oracle.binding.expr.ServiceInvocationException: JBO-29000: Unexpected exception caught

Cause

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
Symptoms
Cause
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.