cancel
Showing results for 
Search instead for 
Did you mean: 

XMLAnonymizer: namespace deleted

Former Member
0 Kudos

Hi All,

I am trying to use the XMLAnonymizer bean with the Receiver File adapter.

My problem is that, the namespace prefix is getting substituted correctly, but the namespace itself is getting deleted from the node.

i..e.: the XML looks like this:

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

And I use the following in the Adapter Module Configuration:

Parameter name: anonymizer.acceptNamespace

Parameter Value: urn:sap-com:document:sap:rfc:functions rfc

The output I get is:

<rfc: controlRecipe>

But I want to retain the namespace within the XML node.

I am unable to understand how to achieve this.

Please help.

Regards,

Puloma.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

If you use PI 7.10 Sp6, then apply the latest patch.

Former Member
0 Kudos

Hi All,

Stefan is absolutely right.

It works fine in XI 3.0, but its not working in PI 7.1 SP4

I believe it will work from SP7 onwards.

Regards,

Puloma

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Please refer the blog and sap help to resolve your issue:

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

use that link to know more about XMLAnonymizerBean along with the blog mentioned.

http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm

It will definitely solve your query.

Anurag Garg

Former Member
0 Kudos

Puloma,

Try this:

Parameter Name: anonymizer.acceptNamespaces (you missed s)

Parameter Value: urn:sap-com:document:sap:rfc:functions '' (after functions a space and two single ' quotes)

Regards,

---Satish

Former Member
0 Kudos

Hi Satish,

I tried doing that. (The missing 's' was a typo)

The output I get is:

<controlRecipe>

i.e. the namespace itself is removed.

I want to retain the namespace.

Regards,

Puloma

Former Member
0 Kudos

can you expand your question.....?

means how it is before module calling.....

how exactly you want after module called

Regards

Ramesh

Former Member
0 Kudos

Puloma,

It is working for me. I just tried it and it is working. I think we are missing somehting here. In receiver file adapter where are you calling? Are you calling after the adapter is called or before the adapter is called?

Also please check the payload after message mapping. Onething here you are saying you are using file adapter, but you are trying to get the urn:sap-com:document:sap:rfc:functions. This is rfc. So how will you get. Did u created the same namespace or what? Please tell the exact process and where exactly you are putting this module and the payloads, so that somebody can help you.

Regards,

---Satish