WCF/WF - KnownType on external interface - Asked By erion pc on 31-May-10 11:54 AM

I'm new to WCF. I'm using it for the first time to package a Business Logic Layer, making it usable over the network. In my business dll (class library) there are several interfaces and derived classes. I read about KnownTypeAttribute, and I understand how it works when you declare the data contract in the same project of the WCF service, but I haven't quite grasped how to specify a data contract for an already existing type which is packaged in a referenced library. Any help would be appreciated.
Sara J replied to erion pc on 31-May-10 12:18 PM
You can use Add service reference the proxy creates partial data contracts. You can modify the generated data contract by visual studio utility but it will overriden when its referenced again.

erion pc replied to Sara J on 01-Jun-10 05:32 AM
Thank you. I decided to use a concrete type for one of the members of the class that was generating a deserialization problem. It works fine now.
Cheers