on 03-08-2011 10:02 PM
Hello,
I have gone through Stefan's response in the other thread that this is possible, but I'm missing something. If anyone has idea, could you please suggest your solution?
I'm sending synchronous call to webservice and getting a response. The response has some x namespace and I want it to change it to y namespace. So I did the following, but always I'm getting x namespace when I look in the sxmb_moni.
Added anonymizer module after the SOAPBean Module
ParameterName: anonymizer.acceptNamespaces
Value:
http://abc ' ' http://def ' '
When I look in the sxmb_moni, I'm seeing only http://abc and not http://def ' '
Thanks!
Hello Again,
According to the help.sap.com [link|http://help.sap.com/saphelp_nwpi711/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm]
under Parameter Value, enter a list of namespaces and their prefixes that are to be kept in the XML document as follows: namespace1 n1 namespace2 n2 u2026
So the syntax which I've given doesn't seems to be correct.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj
XMLAnonymizerBean is used to change namespace prefixes or removing namespace.
If you dont specify namespace... that means you are removing that namespace from Xml
If you want to change prefixes for namespace then it is possible by doing the way you mentioned
Example: <ns1: http://test>; ns1 is prefix, http://test is namespace
if you want to change namespace prefix from ns1 to nt1 then specify as
Under Parameter Name, enter anonymizer.acceptNamespaces.
Under Parameter Value, http://test nt1
you cannot change the namespace using XMLAnonymizerBean. You might have to use Java or XSLT mapping to achieve this.
Hope that helps.
Baskar,
Can you please go through Stefan's blog -[blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5767] [original link is broken] [original link is broken] [original link is broken];
You can use the bean for changing the default namespace to a requested one, which is obligatory in some rare scenarios, like pidx.
Any thoughts?
Raj.
Yes Stefan's blog says that namespace can be modfied using this bean. SAP help document does not say like that...
check this link
http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm
Check the shabarish reply here...
IMHO, XMLAnonymizerbean does not support changing the namespace.
@Stefan: Please clarify this.
Hi Raj,
I hope you are using AnonymizerBean as Below, if not give a shot, lets see what happens.
Use the adapter module AF_Modules/XMLAnonymizerBean in your receiving CC. Put its module key as "0" and the module key for CallSapAdapter as "1".
The module parameters will be
(1) anonymizer.acceptNamespaces = namespace1 if
(2) anonymizer.quote = "
(3) anonymizer.encoding = ISO-8859-1.
Regards
Aashish Sinha
Edited by: Aashish Sinha on Mar 9, 2011 5:55 AM did a bit of alignment
> You can use the bean for changing the default namespace to a requested one, which is obligatory in some rare scenarios, like pidx.
Sorry, this is an error. It should be:
You can use the bean for changing the default namespace prefix to a requested one, which is obligatory in some rare scenarios, like pidx
I will change it.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.