cancel
Showing results for 
Search instead for 
Did you mean: 

How to add ns0 with all fields

former_member190543
Participant
0 Kudos

Hi guys,

I am aware and tried the xmlanonymizerbean to add or remove the prefix ns0 to the namespace tag, but is there a way to add ns0 as a prefix to all fields in the xml file that PI produces with file receiver adapter please?

Scenario: Proxy to File.

Required format:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Payment_Request xmlns:ns0="http://ebca.com/test/payments">

<ns0:Request>  (0 to unbounded)

<ns0:Request_Name>SmithJ</ns0:Request_Name>

<ns0:Amount>12.44</ns0:Amount>

<ns0:Request_Id>abc123</ns0:Request_Id>

</ns0:Request>

</ns0:MT_Payment_Request>

Thank you.

Ramesh.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor
0 Kudos

Hi Ramesh,

When you create the data type select Qualify Schema to elements then it will work.

Regards,

Praveen.

former_member190543
Participant
0 Kudos

Thanks for the link Raghu.

Praveen,

The schema setting suggested by you worked straight away. I never had to use this and so did not know.

Many thanks.

Ramesh.

Answers (1)

Answers (1)

former_member186851
Active Contributor

Hello Ramesh,

Check the below discussion,you can acheive using mapping