http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/14278ac1/lib/server-core/src/test/resources/batchLarge.batch ---------------------------------------------------------------------- diff --git a/lib/server-core/src/test/resources/batchLarge.batch b/lib/server-core/src/test/resources/batchLarge.batch index faadea1..8979004 100644 --- a/lib/server-core/src/test/resources/batchLarge.batch +++ b/lib/server-core/src/test/resources/batchLarge.batch @@ -2,13 +2,13 @@ Content-Type: application/http Content-Transfer-Encoding: binary -GET Employees HTTP/1.1 -Host: http://localhost/odata +GET ESAllPrim HTTP/1.1 +Host: localhost Connection: keep-alive -Accept: application/atom+xml -MaxDataServiceVersion: 2.0 -DataServiceVersion: 2.0 -Content-Type: application/atom+xml +Accept: application/json +OData-MaxVersion: 4.0 +OData-Version: 4.0 +Content-Type: application/json Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 @@ -17,13 +17,13 @@ Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 Content-Type: application/http Content-Transfer-Encoding: binary -GET Employees HTTP/1.1 -Host: http://localhost/odata +GET ESAllPrim HTTP/1.1 +Host: localhost Connection: keep-alive -Accept: application/atom+xml -MaxDataServiceVersion: 2.0 -DataServiceVersion: 2.0 -Content-Type: application/atom+xml +Accept: application/json +OData-MaxVersion: 4.0 +OData-Version: 4.0 +Content-Type: application/json Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 @@ -32,13 +32,13 @@ Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 Content-Type: application/http Content-Transfer-Encoding: binary -GET Employees HTTP/1.1 -Host: http://localhost/odata +GET ESAllPrim HTTP/1.1 +Host: localhost Connection: keep-alive -Accept: application/atom+xml -MaxDataServiceVersion: 2.0 -DataServiceVersion: 2.0 -Content-Type: application/atom+xml +Accept: application/json +OData-MaxVersion: 4.0 +OData-Version: 4.0 +Content-Type: application/json Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 @@ -51,473 +51,1358 @@ Content-Type: application/http Content-Transfer-Encoding: binary Content-ID: 1 -POST Employees HTTP/1.1 -Host: http://localhost/odata +POST ESKeyNav HTTP/1.1 +Host: localhost Connection: keep-alive -Content-Type: application/atom+xml +Content-Type: application/json Accept: */* Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 -<entry 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/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/" - m:etag="W/2"> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Rooms('2') - </id> - <title type="text">Room 2</title> - <updated>2013-04-03T10:53:26.021+02:00</updated> - <category term="RefScenario.Room" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Rooms('2')" rel="edit" title="Room" /> - <link href="Rooms('2')/nr_Employees" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Employees" - title="nr_Employees" type="application/atom+xml; type=feed"> - <m:inline> - <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/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/"> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees - </id> - <title type="text">Employees</title> - <updated>2013-04-03T10:53:26.024+02:00</updated> - <author> - <name /> - </author> - <link href="Employees" rel="self" title="Employees" /> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('2') - </id> - <title type="text">Frederic Fall</title> - <updated>2003-07-01T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('2')" rel="edit" title="Employee" /> - <link href="Employees('2')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('2')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('2')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('2')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('2')/$value" /> - <m:properties> - <d:EmployeeId>2</d:EmployeeId> - <d:EmployeeName>Frederic Fall</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>32</d:Age> - <d:EntryDate>2003-07-01T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('2')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('3') - </id> - <title type="text">Jonathan Smith</title> - <updated>2013-04-03T10:53:26.025+02:00</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('3')" rel="edit" title="Employee" /> - <link href="Employees('3')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('3')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('3')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('3')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('3')/$value" /> - <m:properties> - <d:EmployeeId>3</d:EmployeeId> - <d:EmployeeName>Jonathan Smith</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>56</d:Age> - <d:EntryDate m:null="true" /> - <d:ImageUrl>Employees('3')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('4') - </id> - <title type="text">Peter Burke</title> - <updated>2004-09-12T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('4')" rel="edit" title="Employee" /> - <link href="Employees('4')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('4')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('4')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('4')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('4')/$value" /> - <m:properties> - <d:EmployeeId>4</d:EmployeeId> - <d:EmployeeName>Peter Burke</d:EmployeeName> - <d:ManagerId>3</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>2</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>39</d:Age> - <d:EntryDate>2004-09-12T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('4')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('6') - </id> - <title type="text">Susan Bay</title> - <updated>2010-12-01T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('6')" rel="edit" title="Employee" /> - <link href="Employees('6')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('6')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('6')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('6')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('6')/$value" /> - <m:properties> - <d:EmployeeId>6</d:EmployeeId> - <d:EmployeeName>Susan Bay</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>3</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>29</d:Age> - <d:EntryDate>2010-12-01T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('6')/$value</d:ImageUrl> - </m:properties> - </entry> - </feed> - </m:inline> - </link> - <link href="Rooms('2')/nr_Building" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Building" - title="nr_Building" type="application/atom+xml; type=entry" /> - <content type="application/xml"> - <m:properties> - <d:Id>2</d:Id> - <d:Name>Room 2</d:Name> - <d:Seats>5</d:Seats> - <d:Version>2</d:Version> - </m:properties> - </content> -</entry> +{ + "PropertyInt16": 1, + "PropertyString": "I am String Property 1", + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "NavPropertyETMediaMany": [ + { + "PropertyInt16": 1, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"1\"" + }, + { + "PropertyInt16": 3, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"3\"" + } + ], + "NavPropertyETMediaOne": { + "PropertyInt16": 1, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"1\"" + }, + "NavPropertyETKeyNavMany": [ + { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 1", + "PropertyInt16": 1 + }, + { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 2", + "PropertyInt16": 2 + } + ], + "NavPropertyETKeyNavOne": { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 2", + "PropertyInt16": 2 + }, + "NavPropertyETTwoKeyNavMany": [ + { + "PropertyCompTwoPrim": { + "PropertyString": "11", + "PropertyInt16": 11 + }, + "CollPropertyString": [ + "1", + "2" + ], + "CollPropertyCompNav": [ + { + "PropertyInt16": 1 + } + ], + "CollPropertyComp": [], + "PropertyCompNav": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + "PropertyComp": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": null, + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "StringValue" + }, + "PropertyInt16": 11 + }, + "PropertyString": "1", + "PropertyInt16": 1 + }, + { + "PropertyCompTwoPrim": { + "PropertyString": "11", + "PropertyInt16": 11 + }, + "CollPropertyString": [ + "1", + "2" + ], + "CollPropertyCompNav": [ + { + "PropertyInt16": 1 + } + ], + "CollPropertyComp": [], + "PropertyCompNav": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + "PropertyComp": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": null, + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "StringValue" + }, + "PropertyInt16": 11 + }, + "PropertyString": "2", + "PropertyInt16": 1 + } + ], + "NavPropertyETTwoKeyNavOne": { + "PropertyCompTwoPrim": { + "PropertyString": "11", + "PropertyInt16": 11 + }, + "CollPropertyString": [ + "1", + "2" + ], + "CollPropertyCompNav": [ + { + "PropertyInt16": 1 + } + ], + "CollPropertyComp": [], + "PropertyCompNav": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + "PropertyComp": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": null, + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "StringValue" + }, + "PropertyInt16": 11 + }, + "PropertyString": "1", + "PropertyInt16": 1 + } +} --changeset_f980-1cb6-94dd Content-Type: application/http Content-Transfer-Encoding: binary Content-ID: 1 -POST Employees HTTP/1.1 -Host: http://localhost/odata +POST ESKeyNav HTTP/1.1 +Host: localhost Connection: keep-alive -Content-Type: application/atom+xml +Content-Type: application/json Accept: */* Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 -<entry 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/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/" - m:etag="W/2"> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Rooms('2') - </id> - <title type="text">Room 2</title> - <updated>2013-04-03T10:53:26.021+02:00</updated> - <category term="RefScenario.Room" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Rooms('2')" rel="edit" title="Room" /> - <link href="Rooms('2')/nr_Employees" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Employees" - title="nr_Employees" type="application/atom+xml; type=feed"> - <m:inline> - <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/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/"> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees - </id> - <title type="text">Employees</title> - <updated>2013-04-03T10:53:26.024+02:00</updated> - <author> - <name /> - </author> - <link href="Employees" rel="self" title="Employees" /> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('2') - </id> - <title type="text">Frederic Fall</title> - <updated>2003-07-01T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('2')" rel="edit" title="Employee" /> - <link href="Employees('2')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('2')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('2')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('2')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('2')/$value" /> - <m:properties> - <d:EmployeeId>2</d:EmployeeId> - <d:EmployeeName>Frederic Fall</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>32</d:Age> - <d:EntryDate>2003-07-01T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('2')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('3') - </id> - <title type="text">Jonathan Smith</title> - <updated>2013-04-03T10:53:26.025+02:00</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('3')" rel="edit" title="Employee" /> - <link href="Employees('3')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('3')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('3')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('3')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('3')/$value" /> - <m:properties> - <d:EmployeeId>3</d:EmployeeId> - <d:EmployeeName>Jonathan Smith</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>56</d:Age> - <d:EntryDate m:null="true" /> - <d:ImageUrl>Employees('3')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('4') - </id> - <title type="text">Peter Burke</title> - <updated>2004-09-12T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('4')" rel="edit" title="Employee" /> - <link href="Employees('4')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('4')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('4')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('4')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('4')/$value" /> - <m:properties> - <d:EmployeeId>4</d:EmployeeId> - <d:EmployeeName>Peter Burke</d:EmployeeName> - <d:ManagerId>3</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>2</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>39</d:Age> - <d:EntryDate>2004-09-12T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('4')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('6') - </id> - <title type="text">Susan Bay</title> - <updated>2010-12-01T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('6')" rel="edit" title="Employee" /> - <link href="Employees('6')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('6')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('6')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('6')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('6')/$value" /> - <m:properties> - <d:EmployeeId>6</d:EmployeeId> - <d:EmployeeName>Susan Bay</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>3</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>29</d:Age> - <d:EntryDate>2010-12-01T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('6')/$value</d:ImageUrl> - </m:properties> - </entry> - </feed> - </m:inline> - </link> - <link href="Rooms('2')/nr_Building" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Building" - title="nr_Building" type="application/atom+xml; type=entry" /> - <content type="application/xml"> - <m:properties> - <d:Id>2</d:Id> - <d:Name>Room 2</d:Name> - <d:Seats>5</d:Seats> - <d:Version>2</d:Version> - </m:properties> - </content> -</entry> +{ + "PropertyInt16": 1, + "PropertyString": "I am String Property 1", + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "NavPropertyETMediaMany": [ + { + "PropertyInt16": 1, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"1\"" + }, + { + "PropertyInt16": 3, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"3\"" + } + ], + "NavPropertyETMediaOne": { + "PropertyInt16": 1, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"1\"" + }, + "NavPropertyETKeyNavMany": [ + { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 1", + "PropertyInt16": 1 + }, + { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 2", + "PropertyInt16": 2 + } + ], + "NavPropertyETKeyNavOne": { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 2", + "PropertyInt16": 2 + }, + "NavPropertyETTwoKeyNavMany": [ + { + "PropertyCompTwoPrim": { + "PropertyString": "11", + "PropertyInt16": 11 + }, + "CollPropertyString": [ + "1", + "2" + ], + "CollPropertyCompNav": [ + { + "PropertyInt16": 1 + } + ], + "CollPropertyComp": [], + "PropertyCompNav": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + "PropertyComp": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": null, + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "StringValue" + }, + "PropertyInt16": 11 + }, + "PropertyString": "1", + "PropertyInt16": 1 + }, + { + "PropertyCompTwoPrim": { + "PropertyString": "11", + "PropertyInt16": 11 + }, + "CollPropertyString": [ + "1", + "2" + ], + "CollPropertyCompNav": [ + { + "PropertyInt16": 1 + } + ], + "CollPropertyComp": [], + "PropertyCompNav": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + "PropertyComp": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": null, + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "StringValue" + }, + "PropertyInt16": 11 + }, + "PropertyString": "2", + "PropertyInt16": 1 + } + ], + "NavPropertyETTwoKeyNavOne": { + "PropertyCompTwoPrim": { + "PropertyString": "11", + "PropertyInt16": 11 + }, + "CollPropertyString": [ + "1", + "2" + ], + "CollPropertyCompNav": [ + { + "PropertyInt16": 1 + } + ], + "CollPropertyComp": [], + "PropertyCompNav": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + "PropertyComp": { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": null, + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "StringValue" + }, + "PropertyInt16": 11 + }, + "PropertyString": "1", + "PropertyInt16": 1 + } +} --changeset_f980-1cb6-94dd Content-Type: application/http Content-Transfer-Encoding: binary Content-ID: 1 -PUT Employees('1') HTTP/1.1 -Host: http://localhost/odata +PUT ESKeyNav(1) HTTP/1.1 +Host: localhost Connection: keep-alive - -Content-Type: application/atom+xml +Content-Type: application/json Accept: */* Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 -<?xml version='1.0' encoding='utf-8'?> -<entry 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:19000/abc/EntryXmlChangeTest/"> - <id>http://localhost:19000/abc/EntryXmlChangeTest/Employees('9')</id> - <title type="text">Mister X</title> - <updated m:null='true'>Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <content type="image/jpeg" src="Employees('1')/$value" /> - <m:properties> - <d:EmployeeId>1</d:EmployeeId> - <d:EmployeeName>Mister X</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:EntryDate m:null='true'></d:EntryDate> - <d:ImageUrl>Employees('1')/$value</d:ImageUrl> - </m:properties> -</entry> +{"PropertyInt16":1,"PropertyString":"I am String Property 1", + "PropertyCompNav":{"PropertyInt16":1}, + "PropertyCompAllPrim":{"PropertyString":"First Resource - positive values", + "PropertyBinary":"ASNFZ4mrze8=","PropertyBoolean":true,"PropertyByte":255, + "PropertyDate":"2012-12-03","PropertyDateTimeOffset":"2012-12-03T07:16:23Z", + "PropertyDecimal":34,"PropertySingle":1.79E20,"PropertyDouble":-1.79E20, + "PropertyDuration":"PT6S","PropertyGuid":"01234567-89ab-cdef-0123-456789abcdef", + "PropertyInt16":32767,"PropertyInt32":2147483647,"PropertyInt64":9223372036854775807, + "PropertySByte":127,"PropertyTimeOfDay":"21:05:59"}, + "PropertyCompTwoPrim":{"PropertyInt16":16,"PropertyString":"Test123"}, + "CollPropertyString":["[email protected]","[email protected]","[email protected]"], + "CollPropertyInt16":[1000,2000,30112], + "CollPropertyComp":[{"PropertyInt16":1,"PropertyComp":{"PropertyString":"First Resource - positive values", + "PropertyBinary":"ASNFZ4mrze8=","PropertyBoolean":true,"PropertyByte":255, + "PropertyDate":"2012-12-03","PropertyDateTimeOffset":"2012-12-03T07:16:23Z", + "PropertyDecimal":34,"PropertySingle":1.79E20,"PropertyDouble":-1.79E20, + "PropertyDuration":"PT6S","PropertyGuid":"01234567-89ab-cdef-0123-456789abcdef", + "PropertyInt16":32767,"PropertyInt32":2147483647,"PropertyInt64":9223372036854775807, + "PropertySByte":127,"PropertyTimeOfDay":"21:05:59"}}, + {"PropertyInt16":2,"PropertyComp":{"PropertyString":"First Resource - positive values", + "PropertyBinary":"ASNFZ4mrze8=","PropertyBoolean":true,"PropertyByte":255, + "PropertyDate":"2012-12-03","PropertyDateTimeOffset":"2012-12-03T07:16:23Z", + "PropertyDecimal":34,"PropertySingle":1.79E20,"PropertyDouble":-1.79E20, + "PropertyDuration":"PT6S","PropertyGuid":"01234567-89ab-cdef-0123-456789abcdef", + "PropertyInt16":32767,"PropertyInt32":2147483647,"PropertyInt64":9223372036854775807, + "PropertySByte":127,"PropertyTimeOfDay":"21:05:59"}}, + {"PropertyInt16":3,"PropertyComp":{"PropertyString":"First Resource - positive values", + "PropertyBinary":"ASNFZ4mrze8=","PropertyBoolean":true,"PropertyByte":255, + "PropertyDate":"2012-12-03","PropertyDateTimeOffset":"2012-12-03T07:16:23Z", + "PropertyDecimal":34,"PropertySingle":1.79E20,"PropertyDouble":-1.79E20, + "PropertyDuration":"PT6S","PropertyGuid":"01234567-89ab-cdef-0123-456789abcdef", + "PropertyInt16":32767,"PropertyInt32":2147483647,"PropertyInt64":9223372036854775807, + "PropertySByte":127,"PropertyTimeOfDay":"21:05:59"}}], + "PropertyCompCompNav":{"PropertyString":"1","PropertyCompNav":{"PropertyInt16":1}}} --changeset_f980-1cb6-94dd-- --batch_8194-cf13-1f56 Content-Type: multipart/mixed; boundary=changeset_f980-1cb6-94dd @@ -527,472 +1412,1358 @@ Content-Type: application/http Content-Transfer-Encoding: binary Content-ID: 1 -POST Employees HTTP/1.1 -Host: http://localhost/odata +POST ESKeyNav HTTP/1.1 +Host: localhost Connection: keep-alive -Content-Type: application/atom+xml +Content-Type: application/json Accept: */* Accept-Encoding: gzip,deflate Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 -<entry 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/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/" - m:etag="W/2"> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Rooms('2') - </id> - <title type="text">Room 2</title> - <updated>2013-04-03T10:53:26.021+02:00</updated> - <category term="RefScenario.Room" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Rooms('2')" rel="edit" title="Room" /> - <link href="Rooms('2')/nr_Employees" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Employees" - title="nr_Employees" type="application/atom+xml; type=feed"> - <m:inline> - <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/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/"> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees - </id> - <title type="text">Employees</title> - <updated>2013-04-03T10:53:26.024+02:00</updated> - <author> - <name /> - </author> - <link href="Employees" rel="self" title="Employees" /> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('2') - </id> - <title type="text">Frederic Fall</title> - <updated>2003-07-01T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('2')" rel="edit" title="Employee" /> - <link href="Employees('2')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('2')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('2')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('2')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('2')/$value" /> - <m:properties> - <d:EmployeeId>2</d:EmployeeId> - <d:EmployeeName>Frederic Fall</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>32</d:Age> - <d:EntryDate>2003-07-01T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('2')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('3') - </id> - <title type="text">Jonathan Smith</title> - <updated>2013-04-03T10:53:26.025+02:00</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('3')" rel="edit" title="Employee" /> - <link href="Employees('3')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('3')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('3')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('3')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('3')/$value" /> - <m:properties> - <d:EmployeeId>3</d:EmployeeId> - <d:EmployeeName>Jonathan Smith</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>1</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>56</d:Age> - <d:EntryDate m:null="true" /> - <d:ImageUrl>Employees('3')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('4') - </id> - <title type="text">Peter Burke</title> - <updated>2004-09-12T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('4')" rel="edit" title="Employee" /> - <link href="Employees('4')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('4')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('4')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('4')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('4')/$value" /> - <m:properties> - <d:EmployeeId>4</d:EmployeeId> - <d:EmployeeName>Peter Burke</d:EmployeeName> - <d:ManagerId>3</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>2</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>39</d:Age> - <d:EntryDate>2004-09-12T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('4')/$value</d:ImageUrl> - </m:properties> - </entry> - <entry> - <id> - http://localhost:8080/org.apache.olingo.odata2.ref.web/ReferenceScenario.svc/Employees('6') - </id> - <title type="text">Susan Bay</title> - <updated>2010-12-01T00:00:00Z</updated> - <category term="RefScenario.Employee" - scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <link href="Employees('6')" rel="edit" title="Employee" /> - <link href="Employees('6')/$value" rel="edit-media" - type="application/octet-stream" /> - <link href="Employees('6')/ne_Manager" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager" - title="ne_Manager" type="application/atom+xml; type=entry" /> - <link href="Employees('6')/ne_Team" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team" - title="ne_Team" type="application/atom+xml; type=entry" /> - <link href="Employees('6')/ne_Room" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room" - title="ne_Room" type="application/atom+xml; type=entry" /> - <content type="application/octet-stream" src="Employees('6')/$value" /> - <m:properties> - <d:EmployeeId>6</d:EmployeeId> - <d:EmployeeName>Susan Bay</d:EmployeeName> - <d:ManagerId>1</d:ManagerId> - <d:RoomId>2</d:RoomId> - <d:TeamId>3</d:TeamId> - <d:Location m:type="RefScenario.c_Location"> - <d:City m:type="RefScenario.c_City"> - <d:PostalCode>69190</d:PostalCode> - <d:CityName>Walldorf</d:CityName> - </d:City> - <d:Country>Germany</d:Country> - </d:Location> - <d:Age>29</d:Age> - <d:EntryDate>2010-12-01T00:00:00</d:EntryDate> - <d:ImageUrl>Employees('6')/$value</d:ImageUrl> - </m:properties> - </entry> - </feed> - </m:inline> - </link> - <link href="Rooms('2')/nr_Building" - rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Building" - title="nr_Building" type="application/atom+xml; type=entry" /> - <content type="application/xml"> - <m:properties> - <d:Id>2</d:Id> - <d:Name>Room 2</d:Name> - <d:Seats>5</d:Seats> - <d:Version>2</d:Version> - </m:properties> - </content> -</entry> +{ + "PropertyInt16": 1, + "PropertyString": "I am String Property 1", + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "NavPropertyETMediaMany": [ + { + "PropertyInt16": 1, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"1\"" + }, + { + "PropertyInt16": 3, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"3\"" + } + ], + "NavPropertyETMediaOne": { + "PropertyInt16": 1, + "@odata.mediaContentType": "image/svg+xml", + "@odata.mediaEtag": "W/\"1\"" + }, + "NavPropertyETKeyNavMany": [ + { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 2 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 3 + } + ], + "CollPropertyInt16": [ + 1000, + 2000, + 30112 + ], + "CollPropertyString": [ + "[email protected]", + "[email protected]", + "[email protected]" + ], + "PropertyCompTwoPrim": { + "PropertyString": "Test123", + "PropertyInt16": 16 + }, + "PropertyCompAllPrim": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "I am String Property 1", + "PropertyInt16": 1 + }, + { + "PropertyCompCompNav": { + "PropertyCompNav": { + "PropertyInt16": 1 + }, + "PropertyString": "1" + }, + "CollPropertyComp": [ + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.223372036854776e+018, + "PropertyInt32": 2147483647, + "PropertyInt16": 32767, + "PropertyGuid": "01234567-89ab-cdef-0123-456789abcdef", + "PropertyDuration": "PT6S", + "PropertyDouble": -1.79e+020, + "PropertySingle": 1.79e+020, + "PropertyDecimal": 34, + "PropertyDateTimeOffset": "2012-12-03T07:16:23Z", + "PropertyDate": "2012-12-03", + "PropertyByte": 255, + "PropertyBoolean": true, + "PropertyBinary": "ASNFZ4mrze8=", + "PropertyString": "First Resource - positive values" + }, + "PropertyInt16": 1 + }, + { + "PropertyComp": { + "PropertyTimeOfDay": "21:05:59", + "PropertySByte": 127, + "PropertyInt64": 9.2233720368
<TRUNCATED>
