cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding namespace to the output payload in CPI Mapping from XSD

Sindura
Discoverer
1,376

Hi Experts,

I am using the UBL 2.1 Waybill-2 schema in CPI. Main schema has several reference schemas.

While loading the structure in mapping, namespace prefix were missing for the reference XSD fields and exist only for the parent node.

Please let me know how to fix the namespace prefix issue in mapping. Target system needs the namespace prefix for all the fields.

Kindly help in resolving the issue .

Input file:

Sindura_0-1716452347210.png

Output file to be generated:

Sindura_1-1716452441818.png

And the output file is coming like this :

Sindura_2-1716452551698.png

 

Thanks,

Sindura

Accepted Solutions (0)

Answers (1)

Answers (1)

Dinu
Active Contributor
0 Likes

You have to flatten the schema or map using XSL/Groovy as suggested in Multiple Target Namespaces in Graphical Mapping