blob: 315f80b6c83346dcf3b619265113ba76872049ea [file] [log] [blame]
<!--?xml version="1.0" encoding="UTF-8"?-->
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Use the Export OData Model wizard to export an OData model file, *.odata, from a project in the OData Model Editor, to an XML file. Later, you can use the exported file in another tool to quickly implement an OData service from the model." name="abstract" />
<meta content="Use the Export OData Model wizard to export an OData model file, *.odata, from a project in the OData Model Editor, to an XML file. Later, you can use the exported file in another tool to quickly implement an OData service from the model." name="description" />
<link href="../css/documentation.css" rel="stylesheet" type="text/css" />
<title></title>
<!--[if lte IE 7]><style>
.codeblock{
overflow:visible;
}</style><![endif]-->
<div id="wrapper">
<div id="container">
<h1 class="title topictitle1">Exporting an OData Model from the OData Model Editor</h1>
<div class="body taskbody">
<p class="shortdesc">Use the Export OData Model wizard to export an OData model file, <span class="keyword uilabel">*.odata</span>, from a project in the OData Model Editor, to an XML file. Later, you can use the exported file in another tool to quickly implement an OData service from the model.</p>
<div class="section context" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__context_N10019_N10016_N10001">
<div class="tasklabel">
<h2 class="sectiontitle tasklabel">Context</h2>
</div>
<p>&nbsp;<span style="line-height: 1.6;">The export feature allows you to specify the supported XML format based on the version of the OData Common Schema Definition Language (CSDL) you want. The exported file can be in one of the following versions of CSDL:</span></p>
<div class="p">
<ul class="ul" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__ul_vrd_xss_3j">
<li class="li">OData V2
<p class="p">Select this option if you want the exported file to be saved in version two of OData CSDL.</p>
</li>
</ul>
</div>
<p class="p">In addition, the framework enables you to create and implement your own custom export functionality to save the exported file to your custom file formats.</p>
To export the OData model file, proceed as follows:</div>
<div class="tasklabel">
<h2 class="sectiontitle tasklabel">Procedure</h2>
</div>
<ol class="ol steps" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__steps_ndr_mqy_tj">
<li class="li step" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__step_N10042_N1003F_N10016_N10001"><span class="ph cmd">From the <strong>File</strong> menu, choose,&nbsp;<span class="ph menucascade"><span class="ph uicontrol"><strong>Export</strong>&gt;</span></span><span class="ph menucascade">&nbsp;<span class="ph uicontrol"><strong>Ogee</strong>&gt;</span></span>&nbsp;<span class="ph menucascade"><strong><span class="ph uicontrol">OData Model</span></strong> </span>and choose<strong> <span class="keyword uilabel">Next</span></strong>. The <strong>Export Service Model</strong> window opens. </span></li>
<li class="li step" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__step_N1007C_N10045_N10016_N10001"><span class="ph cmd">In <strong>Model Name</strong>, choose <strong><span class="keyword uilabel">Browse</span></strong> to select the specific <kbd class="ph userinput">*.odata </kbd>file you want to export. If you have already selected the specific<kbd class="ph userinput"> *.odata </kbd>file, it is displayed with the full pathname.</span></li>
<li class="li step" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__step_N10091_N10045_N10016_N10001"><span class="ph cmd">From<strong> <span class="ph emphasis emphasis"><span class="ph emphasis emphasis"><span class="ph emphasis emphasis">Export Format</span></span></span></strong>, select the OData protocol version in which you want to save the file. The following is the supported formats, OData V2.</span></li>
<li class="li step" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__step_N1009E_N10045_N10016_N10001"><span class="ph cmd">In <strong><span class="ph emphasis emphasis">Export As</span></strong>, choose <strong><span class="keyword uilabel">Browse</span></strong> to specify the folder in which you want to save the new file, and enter a name for the file. The file is saved as an XML file. </span></li>
<li class="li step" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__step_N100A7_N10045_N10016_N10001"><span class="ph cmd">Choose <strong><span class="keyword uilabel">Finish</span></strong> to export the file.</span></li>
</ol>
</div>
</div>
</div>