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"""); }
private void AddContentTypeHeader(IWebClient webClient) { webClient.AddHeader("Content-Type", "text/xml; charset=utf-8"); }