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

Types

A type is the most basic form of an element in WSDL. A type is very closely related to a type in an XSD (XML Schema) document. In fact, if you describe the type in XSD form they are identical. For this reason schema is the preferred mechanism for description.

You can think of a type as a struct in C/C++. Java has no direct parallel, but it would be the equivalent of a class with variables but no methods. In fact, the most basic types are directly analogous to primitive values in Java.

Types are needed to describe the fundamental elements of a method call. For instance, consider the following Java method:

public void myMethod(String parameter){
//do something
}

In the most basic sense, to be able to call the method myMethod(), you must ...

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