on 11-23-2016 2:55 AM
HI Experts
We have Synchronous Rest -->PI--Proxy scenario and we are having PI 7.31.
Now when we receive a response from R3 system there is a namespace change because of which it throws error in sender system, though it is succesfull in PI.
Does anonymiser bean works with Rest adapter?
We have tried with anonymizer bean but see no changes in response.
If no, apart from putting java map is there any other way out to deal with it.
<n0:MT_xxx xmlns:prx="urn:sap.com:proxy:XXXX" xmlns:n0="http://XXXXX">
n0 has to be replaced by nm
Anonymiser bean is used with below parameter value.
anonymizer.acceptNamespaces= urn:sap.com:proxy:XXXX prx http://XXXXX nm
Thanks
applying the anonymiser bean and changing prefix namespace to the one as desired is changed which worked.Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All
Anonymiser bean is applied in rest adapter and sender is receiving the correct response only for those response message which doesnt have array like structure.
For those who have some Array structure passed in response,they result in incorrect response, i.e, some braces etc are missed in the json response at sender side.
How is the translation happening, how can i view this.
I then tried removing the bean with changing the namespace in response setting of rest adapter to n0 (in the prefix it is received by CRM system) that results in correct structure. Am not sure how this adapter with and without bean working .
Can anyone suggest.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy
Thanks for reply.
i have applied the anonymiser bean after the call adapter module in rest channel (as the idea is to use in response structure) but it is not changed.Message log says anonymizer applied in monitoring.
namespace changes are
Desired::: <nm:XXXMT xmlns:prx="urn:sap.com:proxy:XXXX" xmlns:nm="http://XXXX">
Getting::<n0:XXXXXMT xmlns:prx="urn:sap.com:proxy:xxxxxx" xmlns:n0="http://xxxxx">
bean used:
localejbs/AF_Modules/XMLAnonymizerBean
anonymizer.acceptNamespaces =
urn:sap.com:proxy:XXXX prx http://XXXXXX nm
Also in Rest adapter channel confguration the namespace is nm (desired) is maintained but still the response payload is not changed to "nm" from "n0"
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SAP PI!
I guess XMLAnonymizerBean should work with Rest adapter. Why not to check it yourself?
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
11 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.