The Definitions Element

The Definitions element ( wsdl:definitions) is the root element of a WSDL document. Stylus Studio creates the Definitions element for you when you create a new WSDL document. (See Creating a WSDL Document in Stylus Studio.) The Definitions element defines the set of services that the Web service offers.

You can use the Diagram > Add or the Definitions element's short-cut menu (right-click, select Add) to define the following elements as children of the Definitions element:

  • Types ( wsdl:types)
  • Service ( wsdl:service)
  • Message ( wsdl:message)
  • Port type ( wsdl:portType)
  • Binding ( wsdl:service)
  • Documentation ( wsdl:documentation)

Importing a WSDL Document

You can import one WSDL document into another. You might want to do this, for example, if you have established a WSDL document as a repository for Messages you want to be able to across different Web services. Once you do this, you can use elements defined in the imported WSDL as you would locally defined elements.

See Importing WSDL Documents for more information.

Definitions Element Properties

The following table describes the properties of the Definitions element.

Name
Description
Target Namespace
The target namespace you want to associate with the Web service described by the WSDL.
Table 101. Definitions Element Properties

 
Free Stylus Studio XML Training: