Reputation: 1673
I am using an OData Service Reference to create a Purchase Order. When I call the OData SaveChanges method it does save my PO and somewhere in the response is the POID.
Fiddler shows me that OData is returned from an OData SaveChanges call.
My DataServiceResponses(0).Headers looks like this in the watch window:
While I could get the Location response and scrape the POID (in this case it is 0000000035 or 36) but I should be able to get an object back in the form of the odata shown by Fiddler. I would rather make a second call to re-query the PO information.
Everyone always asks for code -- fine, here's some code:
Upvotes: 0
Views: 261
Reputation: 1673
Apparently the object is populated with server data.
That is really cool!
Upvotes: 1