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

Apache SOAP for RPC

Apache SOAP's strongest capability is in writing SOAP nodes. Literally all you need to do is write a so-called deployment descriptor (an XML document that outlines which methods are exposed on the network) to turn regular Java classes in SOAP nodes.

Unfortunately, it is less effective for writing clients. The library requires too many steps for a simple call. We hope that future versions of the library will address this problem, perhaps with an RMI binding or by generating the code from WSDL files.

Writing the Service Provider

Listing 8.6 is BookingService, the SOAP node you have used so far. It implements the three methods defined on the service. Remember they are:

  • getAllResources()

  • getFreeResourcesOn()

  • bookResource()

Listing ...

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