.net - Custom object returning as "empty" from WCF? -


When WCF was clearly populated upon the WCF service return, then WCF will return me the "blank" instant object from Before that it went on the wire?

For example a simple operation cactetect method:

  response.Client = new customer (); Response.Client.ID = 99; Return feedback;  

A "blank" client returns the object (on the client recipient end) and all the fields are either zero or zero. However, before reacting, if I inspect the reaction. Client.Id have population from 99?

Just to make matters worse, I have an error object and I am populated like this:

  response.aers.ad (new coded error (errors. Error code .LOGIN_AUTHENTICATION_ERROR););  

However I can see the error list on the end with this?

If someone encounters this problem, I've got a fix. Due to business needs, I marked my custom class with both [serialable] and [DataContract] , possibly as appears in .NET 3.5 SP1 ?

I have friends who have the WCF objects with these two qualities in the East. NET 3.5 is sending SP1 and it is working fine. Interesting.

FYI, I only use [serializable] and is sending it correctly through my object graph.

It was a painful problem but glad that it is finally working ....


Comments