blob: 4887c3b19490ec77494ab778e7c76ea36450bfdd [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="Import XML and EDMX files into a project"/>
<meta name="description" content="Import XML and EDMX files into a project"/>
<link rel="stylesheet" type="text/css" href="../css/documentation.css"/>
<title>Importing an OData Model</title>
<!--[if lte IE 7]><style>
.codeblock{
overflow:visible;
}</style><![endif]-->
</head>
<body class="" id="loio86e4b6eede0b408ba9d69f24b8148642">
<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
<span class="ph uicontrol">File</span><span class="ph uicontrol">Import</span> to open the
<span class="ph emphasis emphasis">Import-Select</span> window.</span></li>
<li class="li step stepexpand"><span class="ph cmd">In the Import window, expand <span class="ph uicontrol">Ogee</span><span class="ph uicontrol">OData
Model</span>.</span></li>
<li class="li step stepexpand"><span class="ph cmd">Click <span class="ph emphasis emphasis">Next</span> to open the <span class="ph emphasis emphasis">Import OData
Model</span> window.</span></li>
<li class="li step stepexpand"><span class="ph cmd">Choose <span class="ph emphasis emphasis">Browse</span> or enter the folder name in the
<span class="ph emphasis emphasis">Folder</span> 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 <span class="ph emphasis emphasis">Model Name</span> 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
<span class="ph emphasis emphasis">Next</span>.</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><p class="li stepsection">
<ul class="ul" id="loio86e4b6eede0b408ba9d69f24b8148642__ul_jvn_xwl_tp"><li class="li"><span class="ph emphasis emphasis">OData Metadata File</span>- 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"><span class="ph emphasis emphasis">OData Service URL</span>- 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>
</p><ol start="8"><li class="li step stepexpand"><span class="ph cmd">Click <span class="ph emphasis emphasis">Finish</span>.</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>
</body>
</html>