Content Conversion Issue - sender File adapter..!!
Hi All ,
GRP-LN|TXT|Customer: KR Test, Case 3
GRP-LN|TXT|Power : -2.25
GRP-LN|TXT|Customer: CL Test, Case 4
GRP-LN|TXT|Sphere Power : -2.25
I have 4 segments (Header,Detail,Text,Trailer) with "|" as the field separator and HD,DTL,TXT,T are the Keyfields
I need to get the xml structure like below heirarchy. Text segment has to come under Detail structure. Header,Detail and Trailer has to be in the same position.
After completion of content conversion, I am getting the XML structure in the below format. All the segments are coming in the same hierarchy.
Text segment has to come under Detail segment. I used the below parameters for FCC.
Recordset Structure: Header,1,Detail,,Text,,Trailer,1
Recordset Sequence: Variable
Kindly suggest me wat went wrong and how to solve it by content conversion.?
Shabarish Vijayakumar replied
> Hi Shabharish,
> >> then use a java mapping to help create the heirarchy.
> Then I need to use 2 mappings?
> one for converting the flatxml into nested structure and
> Second for doing Message mapping to target XML.
yes you are right.
Use a java mapping to create the hierarchy and then use a graphical mapping to map the XML to target.
Else another option is to do everything in one single mapping. The choice is yours