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"><?xml version='1.0' encoding='UTF-8'?></span>
+<p>Give us this result:</p>
+<div class="codehilite"><pre><span class="cp"><?xml version='1.0' encoding='UTF-8'?></span>
<span class="nt"><edmx:Edmx</span> <span class="na">Version=</span><span class="s">"4.0"</span> <span class="na">xmlns:edmx=</span><span class="s">"http://docs.oasis-open.org/odata/ns/edmx"</span><span class="nt">></span>
<span class="nt"><edmx:DataServices></span>
<span class="nt"><Schema</span> <span class="na">xmlns=</span><span class="s">"http://docs.oasis-open.org/odata/ns/edm"</span> <span class="na">Namespace=</span><span class="s">"com.example.model"</span><span class="nt">></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
-{
- "@odata.context" : "http://localhost:8080/DemoService/DemoService.svc/$metadata",
- "value" : [
- {
- "name" : "Products",
- "url" : "Products"
- } ]
-}
+<p>with give us this result:</p>
+<div class="codehilite"><pre><span class="p">{</span>
+ <span class="nt">"@odata.context"</span> <span class="p">:</span> <span class="s2">"http://localhost:8080/DemoService/DemoService.svc/$metadata"</span><span class="p">,</span>
+ <span class="nt">"value"</span> <span class="p">:</span> <span class="p">[</span>
+ <span class="p">{</span>
+ <span class="nt">"name"</span> <span class="p">:</span> <span class="s2">"Products"</span><span class="p">,</span>
+ <span class="nt">"url"</span> <span class="p">:</span> <span class="s2">"Products"</span>
+ <span class="p">}</span> <span class="p">]</span>
+<span class="p">}</span>
</pre></div>