The Application

For your first Java Web service, you will create a very simple service: the traditional “Hello World” example. Maybe you are tired of seeing this as a first demonstration, but the reason it is so appropriate is that it forces you to understand the framework necessary to make such a simple example work, rather than worry about what bells and whistles to implement. In other words, it helps you to see the forest, rather than the trees.

Figure 5.1 lays out a schematic of this first Web service. As you can see from the figure, the “Hello World” Web service merely responds to all requests by sending the same greeting. The actual implementation of this service is shown in Listing 5.1.

Figure 5.1. An overview of the HelloWorldService ...

Get Java™ Web Services Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.