cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace prefix: Using Anonymizer

Former Member
0 Kudos

Hi guys,

I'm having some difficulties using XMLAnonymizer for placing some namespace prefix's in my message.

After sending the message, I can check on RWB that the module Anonymizer is loaded, but results in the following:

2007-06-21 16:55:45 Success MP: processing local module localejbs/AF_Modules/XMLAnonymizerBean

2007-06-21 16:55:45 Warning Anonimizer: message is empty or has no payload

2007-06-21 16:55:45 Success MP: leaving

Well, why do I have message empty? to what message is he referring to?

Why do I need Anonymizer? Well, the thing is, some namespace prefixes are not being place on the sent message. Without this prefixes the actual mapping fails and no fields are mapped....

Can you give me a hand?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Question answered.

Anonymizer saves the day

stefan_grube
Active Contributor
0 Kudos

Make sure that the Anonymizer is the second last module in the chain in JMS adapter.

It does not work in SOAP sender adapter.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

Thanks for your reply! It works, well, the anonymizer gets the message, but now I've another question....

2007-06-22 11:04:41 Success New JMS message with JMS message ID ID:f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f1f8404040404040 received. The XI message ID for this message is fe826d20-20a7-11dc-8363-00145e1855ec

2007-06-22 11:04:41 Success JMS message converted to XI message format successfully

2007-06-22 11:04:41 Success Anonimizer: anonymizing XML ...

2007-06-22 11:04:42 Success Anonimizer: successfully anonymized

2007-06-22 11:04:42 Success Application attempting to send an XI message asynchronously using connection AFW.

2007-06-22 11:04:42 Success Trying to put the message into the send queue.

2007-06-22 11:04:42 Success Message successfully put into the queue.

I've checked my message but a strange thing happened, maybe I've misunderstood the anonymizer function....

The original message was:

So the namespaces introduced were deleted. But What I thought it was going to happen was that the Anonymizer would introduce the prefix ns0 and ns1 on the tags that had the namespace declaration.... Is this possible with the anonymizer?

Problem solved.... it was a wrong namespace :S

Thanks for the help Anonymizer does wonders and saves a hell lot of time

Message was edited by:

Gonçalo Mouro Vaz

justin_santhanam
Active Contributor
0 Kudos

Hello,

Please have a look at Stefan's weblog

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

Best regards,

raj.

Former Member
0 Kudos

Hi Raj, I've checked Stefan's weblog, and everything seems similar....the error seems to be XI internal.... Do you have any idea of what might be?

justin_santhanam
Active Contributor
0 Kudos

Gonçalo,

One more thing are u using the module parameters as the same -I mean the same order as used in the blog.

Best regards,

raj.