Geeks With Blogs
Allan Rwakatungu's blog Developer and Enterprise Architect May 2008 Entries
Serializing an abstract data contract
Recently I needed to serialize abstract classes in WCF. The best way to explain it is with an example. I have a abstract class [KnownType(typeof(CreditCar... public abstract class Payment { private string _amount; private string _currency; [DataMember] public string currency { get { return _currency; } set { _currency = value; } } [DataMember] public string amount { get { return _amount; } set { _amount = value; } } } The class deriving it is [DataContract] public class CreditCardPayment:Payment ......

Posted On Tuesday, May 27, 2008 1:59 PM

Data Contacts in WCF

Why is this wrong.

If I put void ProcessCreditCardPayment(CreditCard creditcard)   in the client and void ProcessCreditCardPayment(CreditCard creditcards)   in the service host it does not work.

 

Why ??

Posted On Monday, May 12, 2008 1:17 PM

Copyright © Allan Rwakatungu | Powered by: GeeksWithBlogs.net