Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML masK confidential number  RSS feed

 
dileep keely
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Restful service application I get XML data ..which we log it into a log file.
I want to mask the accountNumber before I log the input XML request to a log file.
Also, to log the response xml data ..

Could you please let me know the best way?
Note : We have different Services which we expose to the client

1.I am thinking of using SAX parser and then when I encounter the element <accountNUmber> I wil call the logic which mask the account number.
And return the StringBuffer. (In future may be <depositaccountNumber>, <phonenumber>or <FaxNumber>)..

2. I don't want to go with the Xpath , I use spring Aspect doBefore() where the above logic goes..We expose different services.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!