SOA 11g: Error Converting XML to Native Format when Using Multiple Choice Elements

(Doc ID 1519763.1)

Last updated on JANUARY 16, 2013

Applies to:

Oracle SOA Platform - Version and later
Information in this document applies to any platform.


On : 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/Bill-NonWorking.xsd','Root-Element','STRING')"


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms