cancel
Showing results for 
Search instead for 
Did you mean: 

removing prefix from namespace

PS23
Participant

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

Accepted Solutions (0)

Answers (4)

Answers (4)

PS23
Participant
0 Kudos

applying the anonymiser bean and changing prefix namespace to the one as desired is changed which worked.Thanks

PS23
Participant
0 Kudos

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

PS23
Participant
0 Kudos

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

former_member190293
Active Contributor
0 Kudos

Hi SAP PI!

I guess XMLAnonymizerBean should work with Rest adapter. Why not to check it yourself?

Regards, Evgeniy.