I’ve successfully mapped several fields for our business logic. When I test the service using SoapUI and send a large data payload, it functions correctly.
However, when I inspect other services, I’ve noticed they use many loops, sometimes even nested ones, just to map a single field.
This what I’m doing is correct? or do I have to use loops as well to map my fields?
Thank you
Error messages / full error message screenshot / log file:
Question related to a free trial, or to a production (customer) instance?
regarding the first screen shot:
Did you try to map the category list to the categories list directly, without mapping each single field for the list entry?
This will only work when both lists (source and target) are expected to have the same length and (inner) structure.
When both list will have the same length, but different structures, build loop with both lists (source as input and target as output) and map the resulting single structures inside the loop.
When the lengths will differ somehow you need to loop over the source list only and build a new target list with appendToList functions.
Regarding the second screenshot:
It is not clear, what the source fields will be mapped to.
Remember: When mapping from a document list to a single document or a set of single fields you will need to make a decision, which entry of the list (contact/contactPerson in your sample above) should be used as the source.
When you switch the Service Designer perspective for the pipeline editor tab to another mode, you can scroll input and output independently, so you can show the matching fields together, even when they are at different locations in the pipeline.