on 07-28-2009 6:58 PM
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.
If you use PI 7.10 Sp6, then apply the latest patch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.