O'Reilly logo

Java™ Web Services Unleashed by Mark Wutka, Joseph Weber, Arthur Ryman, K. Scott Morrison, Benoît Marchal, Matthias Kloppmann, Steven Haines, Darren Govoni, Francisco Curbera, Frank Cohen, Robert Brunner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required