cancel
Showing results for 
Search instead for 
Did you mean: 

How the XmlAnonymizerBean work??

Former Member
0 Kudos

Hello experts,

Can somebody help me understand how XmlAnonymizerBean work.

Does it simply replace the characterset/encoding type of the XML message with the one specified in the anonymizer.encoding parametes.Or can it read the payload to identify the encoding type and then replace the xml encoding attribute??

It woudl be great if somebody can explain me this senario with reference to JMS adapter.

- Rajan

Accepted Solutions (1)

Accepted Solutions (1)

former_member732072
Active Participant
0 Kudos

Hi Rajan,

Please have a look at the following link and see if it helps.

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

Best Regards

Answers (2)

Answers (2)

Former Member
0 Kudos

Kindly see this

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

stefan_grube
Active Contributor
0 Kudos

> Does it simply replace the characterset/encoding type of the XML message with the one specified in the anonymizer.encoding parametes.

Yes.

> Or can it read the payload to identify the encoding type and then replace the xml encoding attribute??

No. The encoding of the XML and the declaration must be the same. If the encoding declaration is mission, the default UTF-8 is used.

Former Member
0 Kudos

Hello Stefan.

Thanks for the useful information!!

Could you please help me with the scenario where I want to overwrite the encoding type of the message based on the payload contents OR at the minimum based on the sender/receiver attribute in the message. Is there any standard adapter module available or can this logic be put in a custom module?

Thanks once again for all your help.

- Rajan

jyothi_anagani
Active Contributor
0 Kudos

Hi,

Check this link it will really Help You. Check 4.2 in pageno: 8.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79...

Thanks.

stefan_grube
Active Contributor
0 Kudos

There is no module where you can change the encoding dynamically.

You could do this in an adapter module or in a Java mapping.

Regards

Stefan