Send information in Soap Header to WCF service in C#
问题 i want a web application to create a service reference to my WCF service, insert information to the header of the soap call and call my WCF method. i read about MessageContract attribute and declared one in the interface file: [MessageContract] public class BasicServiceHeader { [MessageHeader] public string myString; } my WCf interface is: [ServiceContract] public interface IBasicService { [OperationContract] [WebGet(UriTemplate = "GetData?value={value}")] // Add support for HTTP GET Requests