on 02-28-2014 4:48 PM
Hi, all.
I am trying to get the file adapter to parse a file. The message type is the following:
JOB
Msg 0..1
Transaction 0 ... unbounded
Data 0 ... 1
f1 string
f2 string
How would you define the recordset name and recordset structure to produce the same structure in the converted xml. I tried:
recordset name : Msg
recordset structure : Data, *
But the transaction is missing. I tried:
recordset name: Msg
recordset structure : Transaction, *
Then the data is missing. Note that the actual data in f1, f2 ... are loaded successfully though.
Thanks,
Jonathan.
Hi Jon - It's not possible to have more then 3 levels using standard FCC.
Curious to know why do you need "Data" element under " Transaction " as the occurence it just "0 ... 1"?
However for some reason if you would like to have it then you might have to create another intermediate mapping and handle it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Hareesh
I agree. But that is how it is defined now by someone else. It is hard to change it as he defines the same structure on the receiving side. I didn't want to change the receiving structure as it touches the proxy code too. So I want to make something short and sweet.
Basically the data looks like this:
11,222
55,666
The result xml should be something like:
<JOB>
<Msg>
<Transaction>
<DATA>
11
222
</DATA>
</Transaction>
<Transaction>
<DATA>
55
666
</DATA>
</Transaction>
</MSG>
</JOB>
I know either the DATA has no meaning and it's giving me a headache ... but that's how it's done and I don't want to rock the boat too much. There are lots of mapping that I have changed otherwise.
Thanks,
Jonathan.
Hello,
Since u don't want to do any intermediate mapping and ur structure is very straight forward so i would suggest you to use JM and avoid FCC.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.