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

Publishing & Printing

It is really hard to get things to look pretty, especially XML. That's why these publishing & printing companies use Stylus Studio to make a Mona Lisa out of data integration. Check out these top companies that are "stunning" with Stylus Studio!

WSDL Editor

WSDL Editor featuring a graphical WSDL viewer, syntax help, Java Web Service code generation and more. Simplify Web Services development with Stylus Studio's Web Service Description Language (WSDL) Editor today!

Translating EDIFACT Documents to XML

The EDIFACT to XML Converter is a primary component of the adapter library. The XML that is generated is well commented and indented, and can be used anywhere XML is normally used — with XML Schemas, XQuery, XSLT, and so on.

XML Unicode Encoding

Stylus Studio supports over 300 different file encodings, including UTF-8, UTF-16, EUC-JP, SHIFT-JIS, and more, alowing you to work with any XML document. Robust text editors support standard editing features, and Sense:X intelligent auto-completion.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member