D. Kermott
D. Kermott

Reputation: 1673

.Net OData ServiceReference SaveChanges Returns OData

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. fiddler response

My DataServiceResponses(0).Headers looks like this in the watch window: .net debugger

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: code sample

Upvotes: 0

Views: 261

Answers (1)

D. Kermott
D. Kermott

Reputation: 1673

Apparently the object is populated with server data.

revised code

That is really cool!

Upvotes: 1

Related Questions