title: Getting a WCF service to map POST'd parameters to arguments
body: <p>I have a legacy service I'm looking to update to WCF and one of it's behaviours is to allow clients to POST a request that has something like:</p>
  
  <p>MyService.asmx/ProcessDocument
  With Post data looking like:</p>
  
  <pre><code>request=&lt;big block of xml&gt;
  </code></pre>
  
  <p>Now in the ASMX days this service accepted a single string parameter i.e:</p>
  
  <pre><code>public void ProcessDocument(string request) {
  }
  </code></pre>
  
  <p>So far I have only gotten this to work in WCF by using a Stream as of the advice in this post here:
  <a href="http://www.dennydotnet.com/post/2008/09/16/WCF-REST-and-POST-Lets-Dance!.aspx" rel="nofollow noreferrer">http://www.dennydotnet.com/post/2008/09/16/WCF-REST-and-POST-Lets-Dance!.aspx</a></p>
  
  <p>A Stream will work, there are just more steps involved to make it work for something that seems to it should be supported out of the box.</p>
  
  <p>I am pretty new to WCF - what am I missing?</p>