Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, August 6, 2008

Defining Complex Data Types Developing Message Interfaces

Procedure

...

1. Create a data type in your namespace on the design maintenance screen of the Integration Builder (see also: Creating a New Object).

2. Choose the Definition tab page. The XSD editor automatically selects the category Simple Type when you create a data type.

3. To insert a subnode, call the context menu for the root element and choose either Insert Subelement or Insert Attribute. This is only possible if the root element has not yet been assigned a type.

If a type has already been specified in the Type column, you can delete it again by selecting the type with the cursor, deleting the selected text by choosing the Del button, and then confirming the change by choosing Return.

4. The type then automatically changes to Complex Type. Using the context menu, insert further elements and attributes to build up the structure of your new complex type. Note the following:

¡ Unlike elements, attributes cannot have subnodes. Therefore, you can build up structures using elements, but you use attributes to specify additional information for an element in a message. See also: Elements and Attributes.

¡ Subelements can only be inserted for elements that do not have a type.

¡ If a single substructure becomes too complicated, you are recommended to use multiple smaller data types instead, especially when these can then be used elsewhere. To reference other data types, choose Input Help ( ) in the list box for the type column.

5. As long as the element concerned is not the root element, you can change the field name by clicking it.

No comments:

Archives