This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Former is an example of a web application invoking the service so you need some listener (and it seems to be Sun's implementation so you have follow that documentation). (Apache Axis2 is another implementation in which case you have to use CXFServlet etc.)
The latter is just a simple java application so you don't need a listener.