A short example of Java Web Services API from a tutorial at www.mkyong.com.