The Curmudgeon

WebLogic comes with all the necessary ingredients to build and deploy a Web service, including Enterprise Java Beans, directory services that use JNDI, and deployment descriptors. The Curmudgeon is an example Web service that shows how to build and deploy a Web service on WebLogic.

The Curmudgeon is a Web service that takes a question as input and states an opinion. Don't expect kind answers from the Curmudgeon. As a matter of fact, it seems the only thing the Curmudgeon likes are things containing chocolate.

WSDL for the Curmudgeon

Listing 24.1 provides a description of the interface that makes it possible to speak with the Curmudgeon.

Listing 24.1. Curmudgeon Web Service
 <definitions targetNamespace="java:examples.webservices.rpc.curmudgeonEJB" ...

Get Java™ Web Services Unleashed 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.