on 03-02-2016 12:49 PM
Hi Sahana,
The recursive nodes are problematic in the message mappings, AFAIK i think you can't deal with them, or simply i don't know how to do it.
I usually take two options:
1. When i can do it, i talk with the endpoint developers to transform the recursive nodes for another structure inside the XSD with 0..unbounded cardinality.
2. If the XSD can't be changed i do a previous XSLT mapping to transform the recursive node in a hierarchical one. (http://stackoverflow.com/questions/2835567/xslt-templates-and-recursion)
I edit this message because Mark said that they are support but with restrictions: Recursive node in xsd | SCN
Regards.
Message was edited by: Iñaki Vila
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I just want to remove recursive structure at source.my target needs only one structure.so I need to keep the first occurance of relatedCity and ignore all other occurance of relatedCity in source payload
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sahana,
If your recursive nodes are constant then you can use them in the mapping, Can you try like this right click on the recursive node and expand the recursive structure and then use it in the mapping and test your mapping and see if it works.
Check below thread Message Mapping of Recursive Source Structure? | SCN
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sahana,
Recursive structures can not be handled in Graphical Message Mapping.
You have to use XSLT or Java mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.