Sorry to necro this, but I'm posting in case I forget how I did this and for some reason don't have the code around anymore. I ended up overriding the Service class' implementation of the addObject method with my own, and returning an Entry object, which is easily parsed (e.g. getId()). I did this for two reasons; first, because I needed to send headers in the HTTP Client that weren't easily accessible from where I was in the code; second, because I was tired of fighting with the framework to do something that should have been crazy simple in the first place. The change I made works for my particular circumstance, and obviously may not work for others (e.g. I'm using the net HTTP client, and have a very limit scope for object creation vs read).
In all honesty it appears it would be a pretty simple patch to the service.ftl file in org.restlet.ext.odata.internal.templates to apply this modification to the full library (and maybe instead of modifying the base function, apply it as a second function that returns an Entry object, or parses into an actual Entity of the type you care about). I'll leave this as an exercise for other interested parties as I'm not sure I could get a JCA in place to commit anything. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3066434

