Oracle Access Manager 11g (OAM 184.108.40.206.x) Policy Admin REST API Java Client Returns "MessageBodyReader not found for media type=text/plain, type=class test.jaxb.ApplicationDomain"
(Doc ID 2461666.1)
Last updated on MAY 24, 2022
Applies to:Oracle Access Manager - Version 220.127.116.11.180116 and later
Information in this document applies to any platform.
- OAM 18.104.22.168.180116
- OAM Policy Admin REST API to configure application domain resources in OAM
OAM-policyadmin-22.214.171.124.0.xsd file, java classes were compiled using the xjc utility
Then using JAXB were able to invoke the services programmatically using java.
The REST calls have been successful in that the resources have either been created or deleted, depending upon the method being used.
* Where the issue occurs is on a POST or DELETE method for the class in use.
For example, if the code performs a POST using the InvocationBuilder like this passing an XML file as input:
Invocation.Builder invocationBuilder = appDomainTarget.request(MediaType.APPLICATION_XML);
ApplicationDomain resp = invocationBuilder.post(Entity.xml(loadXMLFile(xml)), ApplicationDomain.class);
The call is successful, however, it fails when attempting to process the response with an exception similar to the one below
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