You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
Bridge 7 You can import an OData CSDL file (.edmx) describing an OData REST interface directly from a file or via a URL. The importer will generate the data (entities and types) and service elements to your UML model.
The OData entities import rules are described in detail in
OData Import Rules.
After the import, you can call the OData REST service using the E2E REST Adapter.
To import OData metadata to your Builder project, select Import > OData from the E2E Compiler menu.
| Enter a URL to the OData metadata file or select a file from disk. |
| The selected file can be imported into either an existing or a new UML model. Import to a new model will create a ready to use test model. Create a component diagram and test the service call. By selecting Only import entities and types you can prevent the importer from importing the service interface structure to your service. This can be helpful with big interface files containing thousands of classes, if the importer is working very long on the import, and if you can do with the data structures only. You can still cancel the import by clicking Cancel. |
Importing OData Entities into an Existing UML Model
Wanting to import OData Entities 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. |
| The E2E Builder shows information about the import process in the Messages window. |
| The imported types are stored in package Data / <OData entities file name>.import.xml. |
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.
Importing OData Entities into a New UML Model
Wanting to import OData Entities 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 or leave the suggested file name, 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. |
| The E2E Builder shows information about the import process in the Messages window. |
| The imported types are stored in package Data / <OData entities file name>.import.xml. |
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.