cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove namespace prefix from target payload when using HTTP in PI7.0

Former Member
0 Kudos

Hi,

i have a requirement to remove namespace prefix from target payload when receiver receives the payload by an HTTP request.

i am not able to use XML Anonymizer Bean as in HTTP channel its not possiile.

Target structure after mapping now is:

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

<ns3:Order xmlns:ns3="urn:xxx-com:pi:project">

fields

....

...

</ns3:Order>

i need the target structure after mapping should look like:

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

<Order xmlns:="urn:xxx-com:pi:project">

fields

....

...

<Order>

i removed namespace from source and target Message Type of message mapping but still getting "ns3" prefix. My requirement is to just have this ns3 removed.

Please reply if anyone has solved this problem before.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

PriyankaAnagani
Active Contributor
0 Kudos

Hi ,

>>>i removed namespace from source and target Message Type of message mapping but still getting "ns3" prefix. My requirement is to just have this ns3 removed.

Which process you've used for removing namespace...java/xslt mapping. In case of java mapping plese remove ns3 while creating the target element. Please go through the below blog it may help you.

Regards,

Priyanka

Former Member
0 Kudos

Hi,

i removed namespace from "xml namespace " in Message Type as specified in the below link:

Thanks

Former Member
0 Kudos

Hi,

Please make a dummy change in your message mapping and save and activate. namespace and prefix wont come in target structure now.

Thanks all for your replies.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

that is possiable with JAVA/Xslt mapping.

please refer below link:

thnkas

Former Member
0 Kudos

hello,

Check below link.

http://wiki.sdn.sap.com/wiki/display/XI/ChangingNamespacesandtheencodingformatof+XML

Regards,

Phani

Former Member
0 Kudos

Module tab is disabled for HTTP Channel. Can not make changes to HTTP channel.

Thanks