amarildopps / odata4j

Automatically exported from code.google.com/p/odata4j
2 stars 0 forks source link

Batch post fails because createEntity takes precedence #244

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When doing a batch post, it appears that the EntitiesRequestResource requires 
everything to be rooted at /entitySetName

The problem is that $batch is not supposed to be preceeded by the entitySetName 
in the URI. So, when using a .Net data service client either we get a 404 Not 
Found because createEntity takes precedents, or we get other errors if we do 
/entitySetName/$batch 

The solution I think is to have a separate resource for $batch exclusively

Original issue reported on code.google.com by oleg.du...@gmail.com on 28 Feb 2013 at 5:56