MessageHeaderDescription User = new MessageHeaderDescription("User", string.Empty); User.Type = typeof(string); foreach (OperationDescription op in context.Contract.Operations) { foreach (MessageDescription msgDescription in op.Messages) { if (msgDescription.Direction == MessageDirection.Input) { msgDescription.Headers.Add(User); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)