My Oracle Support Banner

Rest Based Business Service Converts Numerical Data Into Exponential Format (Doc ID 2645289.1)

Last updated on MAY 15, 2023

Applies to:

SOA Suite Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On : NA version, Core SOA Product Issues

ACTUAL BEHAVIOR
---------------
Rest Adapter is not retaining the decimal (integer) values. It converts them into Exponential form for eg:

Invoke endpoint through CURL returns

{
"code":   200 ,
"data":  
[
{
"totalAmount":   3.3578669.0 ,
"month":   "2019-12" ,
"unInsuredAmount":   1.6741681.0 ,
"pensionAmount":   0 ,
"insuredAmount":   1.6836988.0 ,
"employeeAmount":   3.3578669.0
}
],
"message":   "process successful" ,
"error":   null ,
"isCompleted":   true
}

When same REST Endpoint invoked through OSB Returns:

{
"code":   200 ,
"data":  
[
{
"totalAmount":   3.3578669E7 ,
"month":   "2019-12" ,
"unInsuredAmount":   1.6741681E7 ,
"pensionAmount":   0 ,
"insuredAmount":   1.6836988E7 ,
"employeeAmount":   3.3578669E7
}
],
"message":   "process successful" ,
"error":   null ,
"isCompleted":   true
}



EXPECTED BEHAVIOR
-----------------------
Adapter should retain the format

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create business service to return larger decimal value. Note business service converts into exponential form

 

Changes

 

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