You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 29
Next »
You can import a WSDL or XML Schema file (XSD) directly from a file or via a URL. The WSDL / XSD import rules are described in detail in
Import - Export Mechanisms.
To import a WSDL or XSD file, select Import > WSDL / XSD from the Model Compiler menu.
Importing a WSDL / XSD File
| Navigate to the file, select it, and click OK. |
| The selected file can be imported into either an existing or a new UML model. Select whether you want the importer to generate one UML module per XML namespace or per XML schema file. Set option Ignore order of attributes in sequence types if you want to set the isOrdered tagged value on the imported class to false. You can cancel the import by clicking Cancel. |
Importing WSDL / XSD into an Existing UML Model
Wanting to import a WSDL file into an existing UML model, proceed as follows.
Click here to expand...
| Select the UML model, in which the file should be imported. The uml source path of the current Builder project will be suggested. Select an XMI file and click OK. |
| After a few seconds, the chosen target XMI file will be loaded. |
Having imported an XML Schema file (XSD), ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported types are stored in the package Data / <XSD file name>.import.xml. |
Having imported a WSDL file, ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported data is stored in the package Data / <WSDL file name>.wsdl. |
The UML model needs to be saved to persist the imported entities and packages.
If an error occurred during the import, you will be notified by the Importer. Refer to Errors Importing a WSDL / XSD File for more information.
Importing WSDL / XSD into a New UML Model
Wanting to import a WSDL file into a new UML model, proceed as follows.
Click here to expand...
| Choose the directory, in which the new XMI file should be stored. The uml source path of the current Builder project will be suggested. Enter a file name for the new UML model and click OK. |
| If the file already exists, you will be asked whether you want to overwrite it. |
| After a few seconds, the new UML model will be opened in MagicDraw. |
Having imported an XML Schema file (XSD), ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported types are stored in the package Data / <XSD file name>.import.xml. |
Having imported a WSDL file, ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported data is stored in the package Data / <WSDL file name>.wsdl. |
The UML model needs to be saved to persist the imported entities and packages.
If an error occurred during the import, you will be notified by the Importer. Refer to Errors Importing a WSDL / XSD File for more information.
Importing a WSDL / XSD from URL
To import a WSDL or XSD file, select Import > WSDL / XSD from the Model Compiler menu.
| Enter a complete URL of the WSDL you want to import. For instance, check out xMethods, where you will find publicly available Web Services (http://www.xmethods.com). |
| For instance, enter the URL of a WSDL that defines a Web Service providing a currency exchange service: http://www.xmethods.net/sd/2001/ CurrencyExchangeService.wsdl. Alternatively, you could also import a WSDL of an xUML service deployed to the Bridge in order to integrate it as SOAP backend in your model. |
| The selected file can be imported into either an existing or a new UML model. The import process may also be canceled clicking Cancel. |
Importing WSDL / XSD into an Existing UML Model
Wanting to import a WSDL file into an existing UML model, proceed as follows.
Click here to expand...
| Select the UML model, in which the file should be imported. The uml source path of the current Builder project will be suggested. Select an XMI file and click OK. |
| After a few seconds, the chosen target XMI file will be loaded. |
Having imported an XML Schema file (XSD), ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported types are stored in the package Data / <XSD file name>.import.xml. |
Having imported a WSDL file, ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported data is stored in the package Data / <WSDL file name>.wsdl. |
The UML model needs to be saved to persist the imported entities and packages.
If an error occurred during the import, you will be notified by the Importer. Refer to Errors Importing a WSDL / XSD File for more information.
Importing WSDL / XSD into a New UML Model
Wanting to import a WSDL file into a new UML model, proceed as follows.
Click here to expand...
| Choose the directory, in which the new XMI file should be stored. The uml source path of the current Builder project will be suggested. Enter a file name for the new UML model and click OK. |
| If the file already exists, you will be asked whether you want to overwrite it. |
| After a few seconds, the new UML model will be opened in MagicDraw. |
Having imported an XML Schema file (XSD), ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported types are stored in the package Data / <XSD file name>.import.xml. |
Having imported a WSDL file, ...
| ... the Builder shows information about the import process in the Messages window. |
| The imported data is stored in the package Data / <WSDL file name>.wsdl. |
The UML model needs to be saved to persist the imported entities and packages.
If an error occurred during the import, you will be notified by the Importer. Refer to Errors Importing a WSDL / XSD File for more information.