nXSD to translate XML to JSON in OSB 12.2.1.2.0
I have been trying for a week to use nXSD to translate a XML to a JSON message and only get as result:
<binary-content ref="cid:N58286f4a:0:172c794a584:N7ffd" xmlns="http://www.bea.com/wli/sb/context"/>
I am using an XQuery to transform the XML msg schema into the schema generated by nXSD using the sample JSON msg.
I have seen some examples that are one liners and others that complain about the same issue. The XML to Native mode does not seem to work for JSON.
If this does not work, what is Oracle recommended solution to translate XML to JSON in OSB 12.2.1.2.0 ?