The Types Element

You use the Types element to specify the XML Schema ( xsd:schema) that is used to describe the structure of a WSDL Part.

A WSDL document can have only one Types element; it must be named "types."

How to Create a Types Element

To create a Types element:
1. Select the Definition (root) element.
2. Select Diagram > Add > Types from the Stylus Studio menu.

Alternative: Right-click the Definition element and choose Add > Types from the shortcut menu.

Stylus Studio adds a Service element to the WSDL.

Types Element Properties

The Types element has no editable properties.

Adding a Schema Element

Once you add the Types element to the WSDL, you then add one or more Schema elements. A Schema element represents an XML Schema, and is created using the xsd namespace by default:

 <wsdl:types>
               
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
               
 </wsdl:types>
               

            

Once it is part of the WSDL definition, you work on a Schema element as if it were an XML Schema in Stylus Studio. For example, you can either define the XML Schema's elements, attributes, global types, and so on directly in the WSDL, as shown in Figure 382, or you can use the Schema element to reference existing XML Schemas ( Diagram > Reference Schemas).

Figure 382. XML Schema Editing Features Available for Schema Elements

See Working with XML Schema in Stylus Studio for more information about creating XML Schema elements from scratch. See Referencing External XML Schemas to learn about importing and including existing XML Schemas.

How to Create a Schema Element

To create a Schema element:
1. Select the Types element.
2. Select Diagram > Add > Schema from the Stylus Studio menu.

Alternative: Right-click the Types element and choose Add > Schema from the shortcut menu.

Stylus Studio adds a Schema element to the WSDL.

Schema Element Properties

See About xsd:schema Properties for more information.

Configuring the Java Runtime Engine or Java Development Kit

This page identifies the Stylus Studio modules that require Java runtime and Java compiler components, where you can download these Java components, and how to force Stylus Studio to detect new or changed Java components.

Translating XML documents to EDIFACT

In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to EDIFACT

Flat File to XML Mapper

Convert any flat file to XML in 3 clicks or less using the Stylus Studio Flat File to XML Mapper. Supports tons of different file encodings: UTF-8, UTF-16, US-ASCII, ISO-8859-1, and more.

Convert HTML to XML

Convert HTML-to-XML with a Document Wizard that quickly converts any HTML to standard XML with the click of a button! To get started, just click File, Document Wizards on the Stylus Studio menu.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.