added java webservice code