title: how to read Custom headers in AfterReceiveRequest() method
body: <p>I am using AfterReceiveRequest() method as below</p>
  
  <pre><code>public object AfterReceiveRequest(ref System.ServiceModel.Channels.Message request, System.ServiceModel.IClientChannel channel, System.ServiceModel.InstanceContext instanceContext)
  {
  
  }
  </code></pre>
  
  <p>I am getting entire <strong>message header</strong> as shown below (<strong><em>request.ToString()</em></strong>):</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  
  &lt;s:Header&gt;
  
  &lt;MyHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;AppIp xmlns="http://schemas.datacontract.org/2004/07/WcfTest"&gt;192.168.1.0&lt;/AppIp&gt;
    &lt;AppPwd xmlns="http://schemas.datacontract.org/2004/07/WcfTest"&gt;UITPass&lt;/AppPwd&gt;
    &lt;Appid xmlns="http://schemas.datacontract.org/2004/07/WcfTest"&gt;UIT&lt;/Appid&gt;
    &lt;ShibbolethSessionID i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WcfTest" /&gt;
    &lt;UCLALogonID i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WcfTest" /&gt;
    &lt;UserUID i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WcfTest" /&gt;
  &lt;/MyHeader&gt;
  
  &lt;To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;http://localhost:60729/Service/StudyListService.svc&lt;/To&gt;
  &lt;Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;http://tempuri.org/IStudyListService/GetStudyListData&lt;/Action&gt;
  
  &lt;/s:Header&gt;
  
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>I want to read <strong></strong> node using request.Headers.<strong>MyHeader</strong></p>
  
  <p>By default request.Headers is giving properties for <strong>To</strong> and <strong>Action</strong> nodes like shown below:</p>
  
  <pre><code>request.Headers.To
  request.Headers.Action
  </code></pre>
  
  <p>Similary is there any way to get <strong>request.Headers.MyHeader</strong> ?</p>
  
  <p>Any ideas is appreciated.</p>