Showing posts with label odata. Show all posts
Showing posts with label odata. Show all posts

Tuesday, March 15, 2011

POST for [WebInvoke] method

Data service method Comp(...)

1. Param in SetServiceOper... and UriTemplate param value should be exect the same (The name of method itself doesn't matter)

2. Comp/1 - doesn't work here (it is strange since documentation say otherwice)
Only way to pass parameter Comp?id=1 - it's work












PUT/POST OData with fiddler
















The crucial thing here : Don't fotget to include namespces to the entity tag, since all others stuff is just copy/paste from GET request. These namespaces are taken from the parent tag of entity of GET request.