Closed GoogleCodeExporter closed 8 years ago
I am able to consume individual entity : /EntityType('ID') but not collection :
/EntityType
So, to me this looks like a problem in consuming the OData v2 JSON format
My EntitySet response looks like below:
{
"d":{
"results":[
{
"__metadata":{
"uri":"http://localhost:7000/node/odata/CA:00000_NodeA/Alert('Alert_8')",
"type":"usm-core.Alert"
},
"Severity":"Fatal",
"AlertType":"Risk",
},
{
"__metadata":{
"uri":"http://localhost:7000/node/odata/CA:00000_NodeA/Alert('Alert_7')",
"type":"usm-core.Alert"
},
"Severity":"Fatal",
"AlertType":"Risk",
}
]
}
}
Original comment by gvnan...@gmail.com
on 7 Sep 2012 at 10:27
Please close the issue. It was not a problem with OData4J but with my OData
service.
My service did not respond with "DataServiceVersion" which should have been
"2.0". Once I put that, it was able to consume JSON Verbose format.
Original comment by gvnan...@gmail.com
on 7 Sep 2012 at 11:33
Original comment by stephan....@googlemail.com
on 7 Sep 2012 at 11:57
Original issue reported on code.google.com by
gvnan...@gmail.com
on 7 Sep 2012 at 10:20