cancel
Showing results for 
Search instead for 
Did you mean: 

CPI Message Mapping Map Multiple source fields to one Target field

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

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

0 Kudos

Hi Praveen,

Thanks a lot it worked.

Best Regards,

Sahil Bakshi

Answers (0)