title: WCF Client- Removing whitespace from Content-Type header
body: <p>I am trying to query a SOAP web service which requires that the Content-Type header does not have any whitespace. I'm using a WCF client for the purpose, and was able to remove the whitespace between <code>application/soap+xml;</code> and <code>charset="UTF-8"</code> by creating a custom <a href="http://msdn.microsoft.com/en-us/library/ms751486.aspx" rel="nofollow">MessageEncoder</a> - </p>
  
  <p><code>Content-Type: application/soap+xml;charset="UTF-8"; action="RealTimeTransaction"</code></p>
  
  <p>But I can't seem to figure out a way to remove the whitespace before <code>action="RealTimeTransaction"</code> in the Content-Type that gets sent to the server. Any ideas please?</p>