Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

but actual co

edited Sep 11, 2021 9:57PM in Integration 4 comments

Summary

Content Type doesnt match even though POSTMAN gives the response

Content

We are facing an issue where from VBCS REST API, we are receiving response when its executed using POSTMAN.

The content type in the response is coming as "application/vnd.oracle.adf.resourcecollection+json".

GET https://<hostnam>/ic/builder/design/<object_name>/1.0/resources/data/<boname>?q=subscriptionNumber=7033 and itemRelation= 'ROYALTY1' and sequenceNumber=1 and itemType in ('TOPUP','TRUEUP')

However, when we implemented the calls in OIC REST API to call the VBCS API, we are seeing the following error:

An error occurred while processing the response payload in the target REST endpoint.]]&amp;gt;&lt;/nstrgdfl:errorPath&gt;&lt;nstrgdfl:instance&gt;&amp;lt;![CDATA[Configured content-type is [application/vnd.oracle.adf.resourcecollection+json] but actual content-type is [text/html]Target REST endpoint response payload processing failed. -- java.lang.ClassCastException: oracle.xml.parser.v2.XMLDocument cannot be cast to java.io.InputStre:Application Error"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!