cancel
Showing results for 
Search instead for 
Did you mean: 

XML Anonymizer and payload zip Adapter Module not working

Former Member
0 Kudos

I have a requirement to change the namespace prefix and zip the file before sending it to target system.

My scenario is FCC to soap. In my SOAP receiver channel I have used AF_Modules/XMLAnonymizerBean to change the namespace prefix

And AF_Modules/PayloadZipBean to zip the file. Below is the module configuration in my receiver SOAP channel.

I need to change the prefix(ns1) of namespace http://abcbank/post to itg before sending xml to partner.

Also I need to zip the file before sending to partner. I have read many threads on XMLAnonymizer bean and PayloadZipBean to achieve the same.

Like http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/07/10/handling-namespaces-in-pi-using-x...

Also I have tried with changing the order of bean I. e. 1.XMLAnonymizer 2. PayloadZipBean 3.SOAP default .But this also not work.

Also I tried to use only XMLAnonymizer bean just the change the default namespace prefix(ns1) to itg, but this also not worked. 

Payload type is ‘application/xml’. I feel using Anonymizer bean alone should atleast change namespare prefix, as in channel log it says

Successfully anonymized.

Below is the payload from message content in channel monitor with prefix ns1 whereas it should be itg as per module configuration.

<?xml version="1.0" encoding="UTF-8" ?> 

- <ns1:mensagemCliente xmlns:ns1=http://abcbank/post>

- <cabecalho>

<dataHoraRequisicao>17/10/2012</dataHoraRequisicao>

<identificadorMensagemCliente>1010</identificadorMensagemCliente>

<cabecalho>

corpo> 

</ns1:mensagemCliente>

When I run the scenario channel  audit log have  entry for both the beans and xml being successfully anonymized. As Shown below

Information Delivering to channel: CC_SOAP_BCM_Receiver

nformation MP: processing local module localejbs/AF_Modules/XMLAnonymizerBean

Information Anonimizer: anonymizing XML ...

Information Anonimizer: successfully anonymized

Information MP: processing local modulelocalejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean

Information SOAP: request message entering the adapter with user J2EE_GUEST

Information SOAP: completed the processing

Information SOAP: sending a delivery ack ...

Information SOAP: sent a delivery ack

Information MP: processing local module localejbs/AF_Modules/PayloadZipBean

Information The message was successfully delivered to the application using connection SOAP_http://sap.com/xi/XI/System

Information Message status set to

I have read that these modules works fine with receiver SOAP adapter. Also i dont see any reason modules not working in PI 7.3. I tried to change encoding/remove namespace using XMLAnonymizer bean but none worked.

Please suggest if this is an issue with using modules in PI 7.3 because i could never get any module working in 7.3.

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Bharat,

What is your SP level?, you need the SP001 for PI 7.3.

Check this Note 1467423 - XML Anonymizer module fails but message processing continues

Regards.

Former Member
0 Kudos

Thanks for your reply.

we are on PI 7.3 SP07. My channel log says successfully anonymized hence note 1467423 is not helpful in this case. Is there any specific thing about SOAP receiver to extend using adapter modules ?

Former Member
0 Kudos

Interesting thing is this modules working fine with file adapter.

both namespace prefix is changed and file is compressed.

Any suggestions why it is not working in SOAP receiver channel ?