Exemplo n.º 1
0
        private void AddMessageHeaders <TServiceContract>(IWebClient webClient)
        {
            AddContentTypeHeader(webClient);

            string contractNamespace = GetContractNamespace <TServiceContract>();

            if (!contractNamespace.EndsWith("/"))
            {
                contractNamespace = contractNamespace + "/";
            }
            webClient.AddHeader("SOAPAction", $@"""{contractNamespace}{typeof(TServiceContract).Name}/Ping""");
        }
Exemplo n.º 2
0
 private void AddContentTypeHeader(IWebClient webClient)
 {
     webClient.AddHeader("Content-Type", "text/xml; charset=utf-8");
 }