Inheritance Insert

Feb 1, 2012 at 10:50 PM

Hello, I am having a really hard time to pass the correct json format from the browser, my wcf data service uses inheritance and every single time I get: "Error processing request stream. Type information must be specified for types that take part in inheritance". When I issue a get I get inside the JSON an array:  ":{"__metadata":{"id":"http://localhost:58712/Test.svc/People(1)","uri":"http://localhost:58712/Test.svc/People(1)/KO.Data.Student","type":"KO.Data.Student"},

Now I could compose that JSON manually, but since I am using knockoutjs to map to my viewmodel it's proving very difficult, I've already downloaded the metadata and sending it as the last parameter in my OData request.

Please help.

 

Feb 17, 2012 at 11:50 PM

Hi rkemish,

   I'm terribly sorry for the delayed response.  Do you have a network trace of what the request being sent to the service looks like?  You get the error message when you do a read or a write request?  

Regards,

Alex Trigo.