Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, August 6, 2008

Exporting XSD and WSDL Documents Developing Message Interfaces

Use

The Integration Builder editors access repository objects directly. For example, you can load message types in the mapping editor to define a message mapping. You can also use tools from a third-party to design a mapping and then import the XSLT or Java mapping into the repository. The Integration Builder supports the export of interface objects for such scenarios.

Interface Object

Export Format

Message Interface

WSDL (Web Service Description Language)

Data type, (fault) message type

XSD (XML Schema Definition)

Note the following here:

· When exporting WSDL, the XSD of the referenced message type is contained in the exported file.

· When exporting (fault) message types or data types, the Integration Builder checks whether there are any references to objects of another target namespace (XSD attribute targetNamespace). The specified XML namespace is the target namespace for (fault) message types while the repository namespace is the target namespace for data types. If such references do exist, the Integration Builder creates a new XSD file for each one and then packs all the XSD files into one ZIP file.

· You can also call the XSD format as text for data types by selecting the XSD Representation tab page.

The following options are available for importing XSD or WSDL documents:

· You can import an XSD definition as a template for a data type.

· You can import message schema in DTD, XSD, and WSDL format as external definitions.

Prerequisites

The Integration Builder exports the current version of the WSDL or XSD document without checking it. If the objects have not been checked, you might export invalid XML files. To make sure that you only export valid XML files, activate the object before export.

Procedure

You are on the design maintenance screen in the Integration Builder.

...

1. Open an interface object.

2. The export function is located in the Tools menu of the interface object:

¡ For message interfaces, choose Tools ® Export WSDL.

¡ For (fault) message types and data types, choose Tools ® Export XSD.

The system displays a dialog window to navigate in the file system of your computer.

3. Navigate to the directory where you want to save the export.

4. Enter a name for the file.

You can choose the file ending yourself. If you choose .xml, for example, you can open the existing file in a browser. The file extension must be .zip when exporting an archive.

5. Save the file.

Result

The system saves the document in the specified directory.

No comments:

Archives