Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tasks : Exporting Business Object Models to XML Schema or WSDL Files

Exporting Business Object Models to XML Schema or WSDL Files
You can export a business object model to XML Schema Definition (XSD) or WSDL files, perhaps for compatibility with other applications that support those formats.
For more information about how business object models are converted to XSD files see Business Object Model Mappings to XML Schema. For information on specifying whether the business object model should be validated for export as an XML Schema or a WSDL file, see Setting Generation Preferences and Business Object Model Mappings to WSDL.
If you want to define which elements to export as top-level elements when you export to XSD, go to the Properties page for a user-defined BOM, and on the Exports tab you will see XML Schema Export Options. This will show the elements available in your BOM, and you can select those you want to ’Export to XSD Top Level Element’ in subsequent XML Schema exports.
Exporting Business Object Models to XML Schema Files
To export a business object model to an XSD file, do the following:
1.
Right-click the Business Objects folder, and select Export > XML Schema.
Select File > Export > Other > XML Schema.
2.
The XML Schema dialog is displayed:
Select the business object models that you want to export, and select a destination for the XSD file (either in the /Exports/XML Schema directory in the project, or in a different path). The Exports folder is created if it does not yet exist and shown in the Project Explorer.
3.
Click Finish. The XSD files are generated in the specified location. A separate XSD file is created for each package in the business object model.
Exporting Business Object Models to WSDL Files
You can also export a business object model to a WSDL. The export procedure is very similar to that for exporting to XSD; the business object model is first converted to XSD format and then the XSD file is converted to WSDL format.
To export a business object model to WSDL, do the following:
1.
Right-click the Business Objects folder, and select Export > WSDL.
Select File > Export > Other > WSDL.
2.
Select the business object models that you want to export, and select a destination for the WSDL file (either in the /Exports/WSDL directory in the project, or in a different path). The Exports folder is created if it does not yet exist and shown in the Project Explorer.
3.
Click Finish. The WSDL files are generated in the specified location.
Exporting a Class to XML Schema File
You can export a specific class to an XML Schema file without exporting the entire business object model of which it is a part. Any objects on which that class has a dependency - for example, any attributes or operations it contains - will be exported with it. This dependency is worked out recursively, so that any dependencies of the dependencies, and so on, are also exported.
To export a class to an XML Schema file, do the following:
1.
2.
Check the selection and change it if necessary. Select a destination for the XSD file (either in the /Exports/XML Schema directory in the project, or in a different path). The Exports folder is created if it does not yet exist and shown in the Project Explorer.
If you check the Preserve Schemas checkbox, the export process will try to preserve the structure of the schema by creating a separate XSD file for each package that is included in the export. If you do not check that box, the export process flattens out all packages into one XSD file.
3.
Click Finish. The XSD files are generated in the specified location.
Exporting a Class to WSDL Format
You can also export a specific class to an WSDL file. Any objects on which that class has a dependency - for example, any attributes or operations it contains - will be exported with it. This dependency is worked out recursively, so that any dependencies of the dependencies, and so on, are also exported.
To export a class to an WSDL file, do the following:
1.
2.
The WSDL dialog is displayed:
Check the selection and change it if necessary. Select a destination for the WSDL file (either in the /Exports/WSDL directory in the project, or in a different path). The Exports folder is created if it does not yet exist and shown in the Project Explorer.
If you check the Preserve Schemas checkbox, the export process will try to preserve the structure of the schema by creating a separate WSDL file for each package that is included in the export. If you do not check that box, the export process flattens out all packages into one WSDL file.
3.
Click Finish. The WSDL files are generated in the specified location.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved