WCF: there is not a header with name '' and namespace '' in the message
<p>ERROR: there is not a header with name ' ' and namespace ' ' in the message</p>

<p>I have a WCF service that needs to retrieve some data that I would like to enclose in the headers, but I get the above error regarding namespace. </p>

<p>I can inspect the whole set of headers, and see mine 'SessionID' under the AllKeys section (in VS) but don't understand what namespace it is expecting if any.</p>

<p>In JS I kick off the request like this with no explicit header:</p>

<blockquote>
<pre><code>      xmlhttp.setRequestHeader("SessionID", $scope.Psession);
        xmlhttp.send(body);
</code></pre>
</blockquote>

<p>and in C# WCF service this line is where I would like to get the header</p>

<pre><code>string session = OperationContext.Current.IncomingMessageHeaders.GetHeader&lt;string&gt;("SessionID", "??? WHAT GOES HERE ???");
</code></pre>

<p>Ultimately, I either need to know what namespace the header is under when I don't declare it myself, or how I can declare it so I know what to search for. Thanks.</p>