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