cancel
Showing results for 
Search instead for 
Did you mean: 

Replacing one namespace with another using XML Anonymizer Module

former_member737583
Participant
0 Kudos

I've following XML message


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

<ns0:Result xmlns:ns0="urn:source_namespace">
   <ns0:Function/>
   <ns0:r/>
</ns0:Result>

but I need to have a little bit different namespace (which do not exist in above message)


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

<ns0:Result xmlns:ns0="urn:target_namespace">
   <ns0:Function/>
   <ns0:r/>
</ns0:Result>

Any idea how to archieve this using XML Anonymizer Module?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member737583
Participant
0 Kudos

Both answers were usefull

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

You don't need a UDF to do this. Follow this...

1. Edit the Message Type Result XML Namespace as urn:target_namespace from urn:source_namespace.

2. Save this and activate it.

3. In the Message Mapping go to edit and reload this new Message Type, save the changes and activate it.

This blog By Sameer Shadab shows you hove to remove the namespace in you case you use the same to change the namespace

Thanks

SaNv...

Former Member
0 Kudos

Hi,

You cannot replace namespace with XML Anonymizer Module.

You can write a small java mapping to achieve this.

Thanks

Kulwinder