GW web service business logic code

Green watch web service business logic code.