Top "Datacontract" questions

A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged.

Using WCF with abstract classes

How do I define DataContract for abstract classes in WCF? I have a class "Person" which I communicate successfully using …

.net wcf abstract-class datacontract
How To Use Interface as DataContract in WCF

I need invoke webservice operations using standard wsdl, but data objects must be different in client and in the server. …

c# wcf interface datacontract operationcontract
Custom serialization with DataContractSerializer

I'm currently using wrapper classes for my DataSets ,in order to implement custom serialization. I would like to use DataContractSerializer (…

c# serialization datacontractserializer datacontract
Custom datacontract / datamember name

I have a following problem. A customer requested a web service that returns data in following format: <status> &…

wcf datacontract datamember
WCF - Instantiating an object in DataContract constructor

I have two classes as below: [DataContract] public class Address { [DataMember] public string Line1 [DataMember] public string Line2 [DataMember] public …

wcf constructor datacontract
WCF DataMember attribute for read-only fields?

I am trying to create a class with a read-only Id field, however I am having problems retaining the value …

wcf datacontract datamember
Is there a way to export an XSD schema from a DataContract

I'm using DataContractSerializer to serialize/deserialize my classes to/from XML. Everything works fine, but at some point I'd like …

c# .net xsd schema datacontract
Custom DataMember names to deserialize a JSON class

I cannot manage to specify custom names for properties. I receive some JSON from the server (which I cannot change) …

c# json datacontract datamember
Client WCF DataContract has empty/null values from service

I have a simple WCF service that returns the time from the server. I've confirmed that data is being sent …

wcf silverlight datacontract emptydatatext
What is best-practice when designing SOA WCF web-services?

Given an operation contract such as: [OperationContract] void Operation(string param1, string param2, int param3); This could be redesigned to: […

c# wcf web-services datacontract