WCF Proxy generation
- by dragonfly
Hi,
I'm generating proxy using svcutil tool. My contract methods return objects of particular type.
However generated proxy client interface has return value of type object.
What is more I get exception with message:
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail] : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:name. The InnerException message was 'XML 'Element' 'http://tempuri.org/:name' does not contain expected attribute 'http://schemas.microsoft.com/2003/10/Serialization/:Type'. The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized.'. Please see InnerException for more details.
Any ideas what's going on?