3.4. The Service Client

The doors of our “service” are now open for business. All we need are some customers or service users. But unlike a Web site, access to this service is programmatic, not click-through. What does this mean to a potential customer (or service consumer)? It needs to develop a program (client) that can connect to the service engine and communicate with the registered service. This is the HelloWorldClient class. The very first part to ensuring that the client can communicate with service, in this case, HelloWorldService, is to compile the service’s IDL file. To run the ESIDL compiler for the Hello World service, we would issue the following command:

java net.espeak.util.esidl.IDLCompiler HelloWorldIntf.esidl 

Of course, when ...

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.