3.2. The Greeting Service
Having described the HelloWorldIntf interface that other components can use to communicate with it, we are ready to develop the greeting service based on that interface. This entails implementing the methods described in the interface HelloWorldIntf in the business logic of the service. The specification for the implementation is also provided by the interface itself. For example, in this case, to implement the HelloWorldIntf interface, we need to create a method called greet, which accepts one String parameter and returns void.
Okay, Java experts go ahead and create your own greet function. Here is an example implementation of the HelloWorldIntf— the HelloWorldImpl class. You will notice that there is nothing e-Speaky ...
Get Web Services: A Java™ Developer’s Guide Using E-Speak 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.