I have an existing WCF service. At some point, sometimes [OperationContract] or [DataMember] in the data contract becomes [Obsolete] . I do not want to remove this method for compatibility reasons with previous versions. Another example - sometimes I have Enum and want [Obsolete] one of the options, but I cannot completely delete it, because the elements already exist in the system / database that contain this value.
Anyway, is there a way to omit certain elements from the generated WDSL? For instance:
[ServiceContract] public interface IMyService { [OperationContract] string SomeMethod(string x);
source share