a java web service for fetching data