cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI- How to Map multiple element into Single element in message mapping?

former_member606009
Discoverer
0 Kudos

I have two json format,

1. Source structure has customer element list and vehicle element list.

2. target structure has the customer and vehicle as a single element list.

I have to map the source to target.

I have converted my JSON files into XSD format, uploaded the XSD format file in the source and target location.

Able to map customer elements but unable to map the vehicle elements in the target element list.

Whether 2 Elements can be mapped to a single Element of the Target?

Accepted Solutions (0)

Answers (2)

Answers (2)

sumanth171
Active Participant
0 Kudos

Hi Magesh,

You cannot map as 1.1 of both the source elements to target, instead place a condition on target element node using both the source elements.

I believe the structure would be as below.

<root>

<element>

<customer></customer>

<vehicle></vehicle>

</element></root>

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Magesh ,

You can do a "duplicate subtree" of your target node element then map the first element node with Customer-Element and then the 2nd one with vehicle-element. Assuming the target element is capable of holding data of both customer/vehicle fields.

Br,

Manoj