blob: 19b418065729e320db42d13ff02205c8f1c17510 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="abstract" 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."/>
<meta name="description" 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."/>
<link rel="stylesheet" type="text/css" href="../css/documentation.css"/>
<title>Exporting an OData Model from the OData Model Editor</title>
<!--[if lte IE 7]><style>
.codeblock{
overflow:visible;
}</style><![endif]-->
</head>
<body class="" id="loio45ffe494a3bc4a1bb355a94db1f5f72e">
<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><div class="p">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: <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 File menu, choose <span class="ph menucascade"><img src="../images/navstart.gif" alt="Start of the navigation path" title="Start of the navigation path"/> <span class="ph uicontrol">Export</span> <img src="../images/navend.gif" alt="End of the navigation path" title="End of the navigation path"/></span>
<span class="ph menucascade"><img src="../images/navstart.gif" alt="Start of the navigation path" title="Start of the navigation path"/> <span class="ph uicontrol">&gt;</span> <img src="../images/navend.gif" alt="End of the navigation path" title="End of the navigation path"/></span>
<span class="ph menucascade"><img src="../images/navstart.gif" alt="Start of the navigation path" title="Start of the navigation path"/> <span class="ph uicontrol">Ogee</span> <img src="../images/navend.gif" alt="End of the navigation path" title="End of the navigation path"/></span>
<span class="ph menucascade"><img src="../images/navstart.gif" alt="Start of the navigation path" title="Start of the navigation path"/> <span class="ph uicontrol">&gt; </span> <img src="../images/navend.gif" alt="End of the navigation path" title="End of the navigation path"/></span><span class="ph menucascade"><img src="../images/navstart.gif" alt="Start of the navigation path" title="Start of the navigation path"/> <span class="ph uicontrol">OData Model</span> <img src="../images/navend.gif" alt="End of the navigation path" title="End of the navigation path"/></span>, and choose <span class="keyword uilabel">Next</span>. The Export Service Model
window opens. </span></li>
<li class="li step" id="loio45ffe494a3bc4a1bb355a94db1f5f72e__step_N1007C_N10045_N10016_N10001"><span class="ph cmd">In Model Name, choose <span class="keyword uilabel">Browse</span> 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 <span class="ph emphasis emphasis"><span class="ph emphasis emphasis"><span class="ph emphasis emphasis">Export Format</span></span></span>, 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 <span class="ph emphasis emphasis">Export As</span>, choose <span class="keyword uilabel">Browse</span> 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 <span class="keyword uilabel">Finish</span> to export the file.</span></li>
</ol>
</div>
</div></div>
</body>
</html>