Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, August 6, 2008

Importing XSD as a Template Developing Message Interfaces

Use

If you have already defined a data type as an XML Schema Definition (XSD) outside the Integration Builder, you can import this definition for a data type in the XSD editor. You use this as a template and can change it as required using the XSD editor.

If more than one data type is defined in an XSD definition, the XSD editor can only import one of the globally defined data types. If the XSD data type to be imported contains references to other data types, the XSD editor does not import these referenced data types. After import, the references no longer link to these data types. However, you can import data types that reference each other to the Integration Repository one after the other. The Integration Builder recognizes automatically if data types for previously invalid references have been imported.

Prerequisites

The XSD editor only imports XSD files if it supports their XSD language. The targetNamespace in the XSD document must either correspond to the Repository namespace where you are creating the data type for your XSD definition, or be undefined.

Procedure

...

1. To import a data type from an XSD file to the Integration Repository, you must first check whether the XSD file contains more than one global data type definition. You must only import one definition in each import.

2. Use the Integration Builder to create a data type with the same name as the data type to be imported from the XSD file. If there is a targetNamespace in the XSD file, it must correspond to the Repository namespace where you are creating this data type.

3. Choose Tools ® Import XSD and select an XSD file from the dialog that follows.

If there are other global data type definitions in the file, the processing log reports that data type definitions have been ignored.

4. If the imported data type contains references to other data types, these are displayed in a message. To import these data types, repeat the procedure in the previous two steps.

Result

You can change and enhance the imported data types by using the functions of the XSD editor. The reference to the original file is lost.

No comments:

Archives