You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by bu...@apache.org on 2015/04/30 10:19:29 UTC

svn commit: r949697 - in /websites/staging/olingo/trunk/content: ./ doc/odata4/tutorials/read/tutorial_read.html

Author: buildbot
Date: Thu Apr 30 08:19:29 2015
New Revision: 949697

Log:
Staging update by buildbot for olingo

Modified:
    websites/staging/olingo/trunk/content/   (props changed)
    websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Apr 30 08:19:29 2015
@@ -1 +1 @@
-1676623
+1676921

Modified: websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html (original)
+++ websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html Thu Apr 30 08:19:29 2015
@@ -135,18 +135,24 @@ Furthermore, for building with maven, we
 <ol>
 <li>Prerequisites</li>
 <li>Preparation</li>
-<li>Create Project</li>
+<li>Create Project<ul>
 <li>Create Project</li>
 <li>Edit pom file</li>
 <li>Check build path</li>
 <li>Build the project</li>
-<li>Implementation - Read scenario to request the EntitySet “Products”</li>
+</ul>
+</li>
+<li>Implementation - Read scenario to request the EntitySet “Products”<ol>
 <li>Declare the metadata</li>
 <li>Provide the data</li>
 <li>Web application implementation</li>
-<li>Run the service</li>
+</ol>
+</li>
+<li>Run the service<ul>
 <li>Run with Eclipse</li>
 <li>The Service URLs</li>
+</ul>
+</li>
 <li>Summary</li>
 </ol>
 <hr />
@@ -498,13 +504,13 @@ Then our elements are added to the Schem
 We have created a class that declares the metadata of our OData service.
 We have declared the main elements of an OData service: <em>EntityType</em>, <em>EntitySet</em>, <em>EntityContainer</em> and <em>Schema</em>.</p>
 <p>At runtime of an OData service, such metadata can be viewed by invoking the Metadata Document.</p>
-<p>In our example:</p>
+<p>In our example invoke the URL:</p>
 <div class="codehilite"><pre>http://localhost:8080/DemoService/DemoService.svc/$metadata
+</pre></div>
 
 
-
-:::xml
-<span class="cp">&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;</span>
+<p>Give us this result:</p>
+<div class="codehilite"><pre><span class="cp">&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;</span>
 <span class="nt">&lt;edmx:Edmx</span> <span class="na">Version=</span><span class="s">&quot;4.0&quot;</span> <span class="na">xmlns:edmx=</span><span class="s">&quot;http://docs.oasis-open.org/odata/ns/edmx&quot;</span><span class="nt">&gt;</span>
   <span class="nt">&lt;edmx:DataServices&gt;</span>
     <span class="nt">&lt;Schema</span> <span class="na">xmlns=</span><span class="s">&quot;http://docs.oasis-open.org/odata/ns/edm&quot;</span> <span class="na">Namespace=</span><span class="s">&quot;com.example.model&quot;</span><span class="nt">&gt;</span>
@@ -527,18 +533,18 @@ We have declared the main elements of an
 
 <p>The Service Document can be invoked to view the Entity Sets, like in our example at</p>
 <div class="codehilite"><pre>http://localhost:8080/DemoService/DemoService.svc/
+</pre></div>
 
 
-
-:::json
-{
-  &quot;@odata.context&quot; : &quot;http://localhost:8080/DemoService/DemoService.svc/$metadata&quot;,
-  &quot;value&quot; : [
-  {
-    &quot;name&quot; : &quot;Products&quot;,
-    &quot;url&quot; : &quot;Products&quot;
-  } ]
-}
+<p>with give us this result:</p>
+<div class="codehilite"><pre><span class="p">{</span>
+  <span class="nt">&quot;@odata.context&quot;</span> <span class="p">:</span> <span class="s2">&quot;http://localhost:8080/DemoService/DemoService.svc/$metadata&quot;</span><span class="p">,</span>
+  <span class="nt">&quot;value&quot;</span> <span class="p">:</span> <span class="p">[</span>
+  <span class="p">{</span>
+    <span class="nt">&quot;name&quot;</span> <span class="p">:</span> <span class="s2">&quot;Products&quot;</span><span class="p">,</span>
+    <span class="nt">&quot;url&quot;</span> <span class="p">:</span> <span class="s2">&quot;Products&quot;</span>
+  <span class="p">}</span> <span class="p">]</span>
+<span class="p">}</span>
 </pre></div>