Skip to Content

CPI Message Mapping Map Multiple source fields to one Target field

Hello Experts,

I have come across a situation where in the message mapping the Source WSDL has four fields (for example: A, B, C, D) and Target WSDL has only one field X (0.. unbounded) to consume data from those four fields. Any idea how to achieve this or may be via script?

Example:

Requirement is if input XML comes like this in message Mapping:

<A>1</A>

<B>2</B>

<C>3</C>

<D>4</D>

Output should be:

<X>1</X>

<X>2</X>

<X>3</X>

<X>4</X>

Is it somehow possible?

Best Regards,

Sahil Bakshi

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 30, 2019 at 09:31 AM

    Hi Sahil,

    you should be able to achieve using Message mapping.

    on target side create copies(Duplicate Subtree) of the target node and map each of the source node with target node.

    A -> X

    B -> X(first Copy)

    C -> X(second copy)

    D-> X(third Copy)

    hope this helps,

    thanks and regards,

    Praveen T


    duplicate.jpg (9.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.