Native Format Builder Will Not Persist Lookahead Attribute Placed on an Element With a Complex Type
Last updated on OCTOBER 12, 2011
Applies to:Oracle SOA Platform - Version: 18.104.22.168.0
Information in this document applies to any platform.
Using JDeveloperStudio Edition Version 22.214.171.124.0
For some cases the Native Format Builder editor will allow the user to supply lookAhead, lookFor and startsWith attributes on an element but it will drop the attributes without warning when generating the Format XSD
1)Create a new SOA Composite Application using JDeveloper.
2)Unzip the SRExample.zip into the application folder.
3)Open the SRExample Project using JDeveloper by clicking the dropdown beside the application name in Application Navigator.
4)The xsd\inputData_3.xsd file contains a hard coded path that must be fixed.
Change the second last line in the file to match the correct location of the inputData.txt file.
5)Open the composite.xml file and double click the File Adapter.
6)Proceed to Step 8 or 9 and click the Gear icon to load the Native Format Builder.
In Step 3 of 4 of the Native Format Builder wizard
expand the LogicalRecord/Person element in the tree view and note the values are set for lookAhead and lookFor.
Proceed to the test page and click the green Triangle to run a test.
The test will fail.
Note in the left pane of the test dialog that the lookAhead and lookFor attributes are not present for the LogicalRecord.
For tests to be successful, manally add the nxsd:lookAhead="1" nxsd:lookFor="0" to the person record.
as shown below.
These additions can be done in the test dialog. Once they are added the test will pass.
<xsd:element name="person" type="tns:Person" maxOccurs="unbounded" nxsd:lookAhead="1" nxsd:lookFor="0" />
<xsd:element name="department" type="tns:Department" />
If the correct modified format is saved, the attributes are lost again when the format is edited using the
Native format builder in design view.
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