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

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" ...

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