Skip to Content

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

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?

capture.png (30.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 19 at 02:07 PM

    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


    capture.png (30.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Mar 19 at 03:35 PM

    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>

    Add comment
    10|10000 characters needed characters exceeded