Try doing this:
In your text file do Entries like this
IDENTIFIER;HEADER,A,B,C,D;LINEITEMS,X1,Y1,Z1
IDENTIFIER;HEADER,A,B,C,D;LINEITEMS,X2,Y2,Z2
IDENTIFIER;HEADER,A,B,C,D;LINEITEMS,X3,Y3,Z3
IDENTIFIER;HEADER,A,B,C,D;LINEITEMS,X4,Y4,Z4
Now first create a flat file dictionary. In your dictionary create two composites:
HEADER and LINEITEMS
In
HEADER : create fields A,B,C,D and give their nth fields as 1,2,3,4 correspondingly
LINEITEMS : create fields X,Y,Z and give their nth fields as 1,2,3 correspondingly
Now create a flat file schema:
specify record sepearator as newline, field seperator as ; and sub-field as ,
Create a record Definition as IDENTIFIER, in that choose composite references, choose the flat file dictionary you created and create the composite references as HEADER and LINEITEMS and give their nth fields as 1 an 2 correspondingly.
So in yor record definition you have two composite references Header and Lineitems with Nth fields as 1 and 2.
Validate your text file with this flat file
Reply if this is the way you want your data
Regards;
Sudarshan
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services