cancel
Showing results for 
Search instead for 
Did you mean: 

XMLANONYMIZERBEAN - insert Namespace Prefix

Former Member
0 Kudos

Hello,

I am using XMLAnonymizerBean to place a prefix for the incoming message. But its placing the prefix in all the nodes.

Module step I have used is

AF_Modules/XMLAnonymizerBean - LocalEnterpriseBean - 0

0 - anonymizer.acceptNamespaces - urn:sap-com:document:sap:rfc:functions ns1

0 - anonymizer.encoding - utf-8

Input XML

<?xml version="1.0"?>

<IDD001 xmlns="urn:sap-com:document:sap:rfc:functions">

<child1>

<item>

<a>20090123</a>

<b>0923</b>

<c>ET</c>

<d>5210</d>

</item>

</child1>

</IDD001>

OutputXML

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

<ns1:IDD001 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">

<ns1:child1>

<ns1:item>

<ns1:a>20090123</ns1:a>

<ns1:b>0923</ns1:b>

<ns1:c>ET</ns1:c>

<ns1:d>5210</ns1:d>

</ns1:item>

</ns1:child1?

</ns1:IDD001>

I want the prefix only for the root element..We are in XI 3.0 SP 15..Any ideas or patches anybody found for this issue.? Thank you..

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

Remove namespace in the message type in your repository.

VJ

Former Member
0 Kudos

No its a proxy structure imported from ECC..I cannot remove it there....The same proxy structure xml is sent from the third party system and the msg is sent to SAP without any mapping and to another system in the format that it requires..But the third party system is not sending with a prefix for its namespace and hence the msg is failing in SAP as well as in XI when trying to send to another system....