blob: b4d5cde3299bc7b5665cafa1b21bd4db904110a0 [file] [log] [blame]
<title></title>
<!--[if lte IE 7]><style>
.codeblock{
overflow:visible;
}</style><![endif]-->
<div id="wrapper">
<div id="container">
<h1 class="title topictitle1">Importing an OData Model</h1>
<div class="body taskbody">
<p class="shortdesc">Import XML and EDMX files into a project</p>
<div class="tasklabel">
<h2 class="sectiontitle tasklabel">Procedure</h2>
</div>
<ol>
<li class="li step stepexpand"><span class="ph cmd">Open Eclipse and navigate to <strong><span class="ph uicontrol">File</span><span class="ph uicontrol">Import</span></strong> to open the<strong> </strong><span class="ph emphasis emphasis"><strong>Import&gt;Select</strong></span> window.</span></li>
<li class="li step stepexpand"><span class="ph cmd">In the Import window, expand <strong><span class="ph uicontrol">Ogee</span><span class="ph uicontrol">OData Model</span></strong>.</span></li>
<li class="li step stepexpand"><span class="ph cmd">Click <strong><span class="ph emphasis emphasis">Next</span></strong> to open the <strong><span class="ph emphasis emphasis">Import OData Model</span></strong> window.</span></li>
<li class="li step stepexpand"><span class="ph cmd">Choose <strong><span class="ph emphasis emphasis">Browse</span></strong> or enter the folder name in the<strong> <span class="ph emphasis emphasis">Folder</span></strong> field to select a project folder for the new OData model.</span></li>
<li class="li step stepexpand"><span class="ph cmd">Enter a name for the model in the <strong><span class="ph emphasis emphasis">Model Name</span></strong> field</span></li>
<li class="li step stepexpand"><span class="ph cmd">Select either <span class="ph emphasis emphasis">OData Metadata File</span> or <span class="ph emphasis emphasis">OData Service URL</span> from the list and click <strong><span class="ph emphasis emphasis">Next</span></strong>.</span></li>
<li class="li step stepexpand"><span class="ph cmd">Do the following in the next page based on your selection:</span></li>
</ol>
<ul class="ul" id="loio86e4b6eede0b408ba9d69f24b8148642__ul_jvn_xwl_tp">
<li class="li"><strong><span class="ph emphasis emphasis">OData Metadata File</span></strong>- Enter the path to access the edmx or xml file, or click <span class="ph emphasis emphasis">Browse </span> to choose the file from the system and click <span class="ph emphasis emphasis">Go</span>. On selection of a valid file the contents of the file will be populated in the Service details region of the window.</li>
<li class="li"><strong><span class="ph emphasis emphasis">OData Service URL</span></strong>- Enter the service URL of the service to be imported in the Service URL field and click <span class="ph emphasis emphasis">Go</span> On providing a valid URL the service will be populated in the<span class="ph emphasis emphasis"> Service details</span> region of the window..</li>
</ul>
<ol start="8">
<li class="li step stepexpand"><span class="ph cmd">Click <strong><span class="ph emphasis emphasis">Finish</span></strong>.</span></li>
<li class="li step stepexpand"><span class="ph cmd">The selected file is converted to an OData service and displayed in the OData Model Editor. All the sections in entity element open up in a expanded state for editing.</span>
<div class="itemgroup stepresult">The service is now ready to be edited and will be stored under the folder selected in the Project Explorer.</div>
</li>
</ol>
</div>
</div>
</div>