The Java part for the Web Service.