Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to parse XML string response to POJO class in Oracle Jdev 12.2.1, MAF 2.3.3?

890683Mar 28 2017 — edited Mar 29 2017

Hi

I'm developing MAF application. I'm invoking REST webservice method from java using "RestServiceAdapter". It returns XML string as response. I tried parsing it using JAXB, and in order to convert it to POJO object, I created a java file and tried adding @XMLRootElement, @XMLElement, etc for java class and its fields. However it's not recognizing @XMLRootElement, @XMLElement. If it's not accepting, then how can i parse xml string to POJO class.

Does MAF support adding @XMLRootElement, @XMLElement annotation ? When i tried adding it gives error message with ( @XMLRootElement is not available in MAF profile compact2 ).

Please anyone help me to resolve this issue.

Jdeveloper: 12.2.1

MAF: 2.3.3

Regards

Raj.

This post has been answered by dvohra21 on Mar 28 2017
Jump to Answer
Comments
Post Details
Added on Mar 28 2017
4 comments
782 views