Hi all,
I am working on a file to file scenario.
The sender data type is in following format -
File_Header
-
Record_ID
-
Filler_S
Batch_Header
-
Record_ID
-
Filler_S
-
Payment_Node
-
Record_ID
-
Filler_S
All the nodes are with key fields.
File_Header Keyfield - 1, Batch_Header Keyfield - 2, Payment_Node Keyfield - 3.
I want to know whether it is possible to have FCC on sender File adapter for this hierarchical structure.
The source XML message should be in following format -
<?xml version="1.0"; encoding="UTF-8"?>
<Test>
<File_Header>
-
<Record_ID>1</Record_ID>
-
<Filler_S>12</Filler_S>
</File_Header>
<Batch_Header>
-
<Record_ID>2</Record_ID>
-
<Filler_S>12</Filler_S>
-
<Payment_Record>
-
<Record_ID>3</Record_ID>
-
<Filler_S>12</Filler_S>
-
</Payment_Record>
</Batch_Header>
</Test>
Currently I am getting source XML in this format.
<?xml version="1.0"; encoding="utf-8" ?>
<ns:Test xmlns:ns="urn:testhierarchy:fcc">
<File_Header>
--<Record_ID>1</Record_ID>
--<Filler_S>01</Filler_S>
</File_Header>
<Batch_Header>
--<Record_ID>25</Record_ID>
--<Filler_S>20</Filler_S>
</Batch_Header>
<Payment_Record>
--<Record_ID>6</Record_ID>
--<Filler_S>22</Filler_S>
</Payment_Record>
</ns:Test>
i.e. Payment_Record and Batch_Header are at same level. I want Payment_Record under Batch_Header.
Kindly let me know if hierarchical structures can be handled in sender FCC. If yes then what should be the FCC parameters?
Thanks i.