Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: Guillaume on June 18, 2018, 05:11:33 pm
-
Hi,
I have a request to import ODATA metadata information in EA.
This is a standard and an example is available here: http://services.odata.org/V4/(S(5u1pssgd00d0isccyny5pihm))/TripPinServiceRW/$metadata (http://services.odata.org/V4/(S(5u1pssgd00d0isccyny5pihm))/TripPinServiceRW/$metadata)
I managed to import the EDM XSD in EA (http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cs01/schemas/edmx.xsd and http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cs01/schemas/edm.xsd).
I tried to change the metadata XML file so it looks like an XSD, with a reference to the EDM XML schema, e.g. by adding the following (see content from the link above)
<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="odatatest" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EnumType Name="PersonGender">
<Member Name="Male" Value="0"/>
<Member Name="Female" Value="1"/>
<Member Name="Unknown" Value="2"/>
</EnumType>
...
</Schema>
Running the XSD import in EA doesn't generate anything, even when I enable the Import Ref XML Schema option.
I feel I'm not far from getting the expected result. Any idea?
Thanks
Guillaume
-
As an update on this one, I identified as a potential solution using XSLT to generate a CSV that will let me import Classes and Attributes into EA.