Hello,
I found out that the generator creates the same name for multiple ?loops?. The name of a loop should be unique since the name is used to select nodes (elements / attributes) and to be a base for sub-loops. The name of a loop is defined by the attribute ?targetbase? of the loop tag.
To solve your problem you have to give the four loops which currently have the name ?/FOBJ/xapp:child(1)?, individual names. I did this renaming within the file structure.xml:
- /FOBJ/xapp:child(1)/s1
- /FOBJ/xapp:child(1)/s2
- /FOBJ/xapp:child(1)/s3
- /FOBJ/xapp:child(1)/s4
These are the new loop names. Then, I used the regenerate of the generator to create the new JSPs.
Remark: If you rename the targetbase of the loop tag within your structure.xml, you must also change the attribute ?base? of nested loop tags.
I attach my structure.xml where I made this changes. It should be nearly the same as yours but I removed some ?displays?. The reason is, that the generated JSPs where to big and the compiler could not process them.
I hope, with a look at the structure file and my description you are able to fix this problem. If not, feel free to ask for more assistance.
Bye,
Christian.
structure.xml (16 KB)
#Tamino#API-Management#webMethods