The initial web service script
REBASEME: Several notes
REBASEME: Changes as in mail discussion