Daten exponieren mit OData und Apache Olingo

Seite 5: Listing

Inhaltsverzeichnis
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xml:base="http://localhost:8080/MyFormula.svc/">

<id>http://localhost:8080/MyFormula.svc/Cars</id>
<title type="text">Cars</title>
<updated>2014-01-30T10:13:34.923+01:00</updated>
<author>
<name/>
</author>
<link href="Cars" rel="self" title="Cars"/>
<entry>
<id>http://localhost:8080/MyFormula.svc/Cars('1')</id>
<title type="text">Cars</title>
<updated>2014-01-30T10:13:34.925+01:00</updated>
<category term="MyFormula.Car"
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices↩
/scheme"/>
<link href="Cars('1')" rel="edit" title="Car"/>
<link href="Cars('1')/Manufacturer"
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related↩
/Manufacturer"
title="Manufacturer" type="application/atom+xml;type=entry"/>
<link href="Cars('1')/Driver" rel="http://schemas.microsoft.com↩
/ado/2007/08/dataservices/related/Driver"
title="Driver" type="application/atom+xml;type=entry"/>
<content type="application/xml">
<m:properties>
<d:Id>1</d:Id>
<d:Model>F1 W02</d:Model>
<d:Price>167189.0</d:Price>
<d:ModelYear>2011</d:ModelYear>
<d:Updated>2014-01-30T09:13:34.847</d:Updated>
</m:properties>
</content>
</entry>
<entry>
...
</entry>
...
</entry>
<entry>
<id>http://localhost:8080/MyFormula.svc/Cars('4')</id>
<title type="text">Cars</title>
<updated>2014-01-30T10:13:34.927+01:00</updated>
<category term="MyFormula.Car"
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices
/scheme"/>
<link href="Cars('4')" rel="edit" title="Car"/>
<link href="Cars('4')/Manufacturer"
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related↩
/Manufacturer"
title="Manufacturer" type="application/atom+xml;type=entry"/>
<link href="Cars('4')/Driver" rel="http://schemas.microsoft.com↩
/ado/2007/08/dataservices/related/Driver" title="Driver"
type="application/atom+xml;type=entry"/>
<content type="application/xml">
<m:properties>
<d:Id>4</d:Id>
<d:Model>FF2014</d:Model>
<d:Price>299189.11</d:Price>
<d:ModelYear>2014</d:ModelYear>
<d:Updated>2014-01-30T09:13:34.847</d:Updated>
</m:properties>
</content>
</entry>
</feed>
(jul)