title: How to get custom SOAP header from WCF service response in Silverlight?
body: <p>I'm trying to get custom response message header in Silverlight application.</p>
  
  <p>on server-side new MessageHeader added to response headers:</p>
  
  <pre><code>OperationContext.Current.OutgoingMessageHeaders.Add(MessageHeader.CreateHeader("headerName", "headerNS", "The header value"));
  </code></pre>
  
  <p>and I can see this header in Fiddler:</p>
  
  <blockquote>
    <p>s:Envelope [
    xmlns:s=http://schemas.xmlsoap.org/soap/envelope/
    ]</p>
    
    <p>s:Header</p>
    
    <p>headerName [ xmlns=headerNS ] The
    header value</p>
  </blockquote>
  
  <p>But, I can't find a way to read header value in Silverlight application service callback:</p>
  
  <pre><code>            using (new OperationContextScope(proxy.InnerChannel))
              {
                  var headers = OperationContext.Current.IncomingMessageHeaders;
                  // headers is null :(
  
              }
  </code></pre>
  
  <p>Does anyone encountered with similar issue?</p>