tags:

views:

89

answers:

2

Hi there,

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???

A: 

Can you show us the service interface? Can you show us your data contract? Can you show us your service implementation?? Without these, it's a bit hard to diagnose.....

Marc

marc_s
+2  A: 

Try rebuilding your proxy class from the WSDL. Long shot but might help.

JP Alioto
+1 good idea! Maybe the service has changed and the proxy still deals with the old data layout.
marc_s
Like you said, without any more info, it's just a guess. :)
JP Alioto
Rebuilding the proxy worked, thanks a lot
Lucky guess! :-)
marc_s