A simple application (server and client) of web service authentication on Java and Tomcat 7