Per my other post about WCF service return values, I'm consuming a web service from another company, and when I add the service reference inside Visual Studio, the return value of the method is an object of type object
.
The author of the web service showed me the code, and it actually returns a typed object.
Am I missing something, or is the proxy class supposed to return a typed value?
Is there a setting for generating the proxy class, or the actual service?
UPDATE:
I looked at the actual classes behind the WCF service and realized that the return value of the service method is actually returning an interface, that the concrete type implements. The concrete type is marked with the [DataContract] attribute ( and appropriate [DataMember] attributes), but the interface has no such attributes. Could this be causing the service to set the return type as object?