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

Operations

The next element, operation, is perhaps the easiest of all the WSDL elements to understand. An operation is, as its name pretty clearly suggests, a parallel to a Java method. There are several key differences, of course. One of them is that an operation has three and only three messages. They are:

  • Input message

  • Output message

  • Fault message

This isn't a great stretch from Java methods. After all, a Java method has only one return object, and it is not uncommon for a method to throw only one type of exception. The main difference here lies in the fact that an operation has just one input message, rather than a list of input parameters.

Types of Operations

Operations generally fall into four forms, based on the nature of the communication. ...

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