For what reason(s) should WCF return me a "empty" instantiated object when it was clearly populated on my WCF service return before it went over the wire?
For instance a simple OperationContract
method:
response.Client = new Client();
response.Client.ID = 99;
return response;
returns an "empty" Client object (on the client receiving end) and all fields are either null or zero. However just before the response, if I inspect response.Client.ID it is populated with 99?
Just to make matters worse, I have an error object and I populate as such:
response.Errors.Add(new CodedError(Errors.ErrorCodes.LOGIN_AUTHENTICATION_ERROR));
However I CAN see the Error list on the receiving end with this? :\
Confusingly yours, Graham