Implementing an RPC-Style SOAP-Based Web Service

Now that you are familiar with writing a simple client for a Web Service, you will probably want to create your own Web Service in Java.

To deliver a Web Service, you must provide the following:

  • The business logic

  • A description of the Web Service, such as its name, the methods to be exposed and so forth

  • A router to receive SOAP calls and dispatch method calls to the business logic

Following the same principles as EJBs, it would be good if most of the Web Service-related functionality was provided for you, leaving you to concentrate on the business logic. Ideally, you would provide the business logic and some of the Web Service description, leaving someone else to provide the rest. Fortunately, as ...

Get Sams Teach Yourself J2EE™ in 21 Days 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.