Reputation:
I have a WCF service that returns a complex object (just a class). I can step into the construction on the object and see that it's properties are being populated but when I hit the F11 key on the return statement of the method that populates the object and i'm on the next line back in the client all the objects properties are NULL
I made a method in my service that returns just a string and that works ok. I also set the httpBinding.MaxReceivedMessageSize = int.MaxValue
The object returned is marked as serialisable etc..
Running out of ideas now???
Upvotes: 1
Views: 680
Reputation: 1878
The class needs to be marked with the
[DataContract]
attribute and the properties marked with the
[DataMember]
attribute.
Upvotes: 0
Reputation: 45117
Try rebuilding your proxy class from the WSDL. Long shot but might help.
Upvotes: 2