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

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.