Axis2 support WS-Security via Apache Rampart module. I had develop the SOAP client based on tutorial : UsernameToken Authentication with Rampart
However, the default implementation of Apache Rampart will not generate Nonce when plain text password was used.
After some google, I found this page talk about a configuration called "addUTElements".
So below are the modified configuration fragment:
Developer's Note
// shall I write some keywords here to boost search engine ranking?
Wednesday, June 13, 2012
Axis2 + Rampart: Generate Nonce and Created when Plain Text Password was Used
Saturday, April 07, 2012
MySQL Random Words Based on Lorem Ipsum Text
Below is a MySQL function that create random text based on 100 words from Lorem Ipsum text.
Saturday, November 05, 2011
Revert to the old Google Reader? Let's enhance the new one
IMHO, The redesign of Google Reader to integrate with Google+ do not impress me.
I am agree with the review of ex-Product Manager of Google Reader. The space allocated for reading is just too small, and I personally like the light blue theme than the current grey scale page.
I failed to google any workable way to restore the old Google look and feel. However, I found the ways to enhance the Google Reader (for Firefox).
Below is the original new Google Reader look and feel:
Below is the modified look and feel:
Below are the steps:
1. Install Greasemonkey plugin
2. Install script "Google Reader - Compact Design" (this script make interface more compact thus give you more space to read)
3. Install Stylish plugin
4. Install user style "Google Reader Revert" (to get back the light blue theme)
So far this 2 scripts do not conflict with each other. Feel free to try.
Saturday, March 19, 2011
JQuery UI: Datepicker with Month and Year only
This can be done by hiding the calendar via some CSS trick:
Saturday, February 19, 2011
JQuery UI: eliminate "stop running this script?" warning in IE
In IE, when the Javascript on the page take too long duration to execute, the browser will popup a warning of "Stop running this scripts?"
In order to eliminate the warning, we need to hint the browser that the script is not infinitely running, by having some pause via Javascript setTimeout method.
However, for Javascript framework such as JQuery that use selector and method chaining extensively, Just setTimeout alone will not help much.
We will need to slice the elements list from selector into few smaller batches, before chain it to the next method.
Below is the sample code snippet:
Feel free to share if you have a more elegant approach to this problem. :)


