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

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.