Structure of a WSDL Document

Web Services Description Language (WSDL) is an XML grammar for describing network services as collections of communication endpoints capable of exchanging messages. The diagram below illustrates the elements that are present in a WSDL document, and indicates their relationships. To see an example of how this is implemented in a WSDL document, see Example of a WSDL Document .

The diagram illustrates the XML elements of a WSDL document

WSDL Document Elements

A WSDL document has a definitions element that contains the other five elements, types, message, portType, binding and service. The following sections describe the features of the generated client code.

WSDL supports the XML Schemas specification (XSD) as its type system.

Contains the definition of one or more services. JDeveloper generates the following attribute declarations for this section:
Notice that the default of in namespaces to ensure that the namespaces are unique.
Provides information about any complex data types used in the WSDL document. When simple types are used the document does not need to have a types section.
An abstract definition of the data being communicated. In the example, the message contains just one part, response, which is of type string, where string is defined by the XML Schema.
An abstract description of the action supported by the service.
An abstract set of operations supported by one or more endpoints.
Describes how the operation is invoked by specifying concrete protocol and data format specifications for the operations and messages.
Specifies a single endpoint as an address for the binding, thus defining a single communication endpoint.
Specifies the port address(es) of the binding. The service is a collection of network endpoints or ports.


Copyright © 1997, 2004, Oracle. All rights reserved.