A WCF service exposing multiple elements in DataContract as DataMember
[DataMember(IsRequired = true, EmitDefaultValue = false)]
public string Source;
[DataMember(IsRequired = true, EmitDefaultValue = false)]
public string Target;
In generated proxy (through add service reference in VS 2008) at client, the client can pass null or empty string in Source or Target. how can I enforce Source and Target as Required at client side. i.e. client should get an exception if Source or Target is set to null, before invoking the service call.