SOA 11g: Error Converting XML to Native Format when Using Multiple Choice Elements
(Doc ID 1519763.1)
Last updated on APRIL 23, 2019
Applies to:Oracle SOA Suite - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
On : 22.214.171.124.0 version, BPEL Service Engine
Error converting XML to native format when using multiple choice elements
Building a string based on a schema generated by a Cobol copybook using the native format builder where the copybook has a lot of field level redefines in it, format builder generates as xsd:choice elements. As long as the choice element is the last element within a complex type, the doTranslateToNative built-in function works well.
If the choice element has any other elements after it, doTranslateToNative is generating the following error message:
javax.xml.xpath.XPathExpressionException, Translation to native failed
The issue can be reproduced at will with the following steps:
1. Create a Transormation XSD using Native format builder from a Cobol copybook file with items after choice elements
2. use the transformation xsd on an xquery like "ora:doTranslateToNative(bpws:getVariableData('InputXML','/ns2:Root-Element'),'xsd/<schemaName>.xsd','Root-Element','STRING')"
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