title: Best way to support "application/x-www-form-urlencoded" post data with WCF?
body: <p>I'm building a WCF service based on a W3C specification which defines a RESTful web service endpoint that accepts "application/x-www-form-urlencoded" post data.  WCF doesn't support this type of message encoding by default and I have found a number of different examples of creating a contract that looks like this:</p>
  
  <pre><code>XElement Query_Post(Stream postData);
  </code></pre>
  
  <p>And then within the implementation decoding the <code>postData</code> stream using the <code>HttpUtility.ParseQueryString</code> method.</p>
  
  <p>Does anyone know of a more strongly typed way of supporting "application/x-www-form-urlencoded" in WCF?</p>
  
  <p>I would like my operation contract to be:</p>
  
  <pre><code>XElement Query_Post(string query, string [] params);
  </code></pre>