Building the Web Service
With the preliminaries out of the way, you can now start building your Web service. In this case, the Web service reads the four files created in the last section from the C:\ projects\ menu directory and sends them to the Web service client. Thus your Web service will be very simple, requiring that you make only small changes to the HelloWorldService you developed in Chapter 5.
The Thai Palace Menu Service
The restaurant's Web service, shown in Listing 6.5, exposes four separate methods, one for each file that will be made available to the client. Although this Web service just reads the files directly, the client doesn't know this. In fact, as far as the client is concerned, the Web service could hide someone who is ...
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.