Technology Stack - EBS (MOSC)

MOSC Banner

ERP Integrations ; getting the response as junk characters

Hi,

I am calling the erpIntegrationService through a simple Java pojo code to call the "importBulkData" operation. I am able to call the service and create a job in the erp cloud. But the response is getting in some junk characters.

URL: https://...../fscmRestApi/resources/11.13.18.05/erpintegrations

Has any one faced this issue ?

The code which I am using in brief:

        HttpURLConnection httpConn = (HttpURLConnection)connection;

        conn.setRequestMethod("POST");

        String authString = "myOracleUser" + ":" + "myOrclePwd";

        String encodedAuth = Base64.getEncoder().encodeToString(authString.getBytes());

        String authHeader = "Basic " + encodedAuth;         

        httpConn.setRequestProperty ("Authorization", authHeader);

        httpConn.setRequestProperty ("cache-control", "no-cache");              

        httpConn.setRequestProperty("Content-Type","application/vnd.oracle.adf.resourceitem+json"); //application/vnd.oracle.adf.resourceitem+json

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center