title: WCF: Is the order of elements in an XML that is posted to a Rest service important?
body: <p>I have been debugging a Rest Service for a while and I have realized that if I post (via POST method) this file</p>
  
  <pre><code>&lt;RegionDTO xmlns="http://www.mysite.com/api"&gt;
   &lt;id&gt;4&lt;/id&gt; 
   &lt;country_id&gt;1&lt;/country_id&gt;
   &lt;name&gt;This is the name&lt;/name&gt;
  &lt;/RegionDTO&gt;
  </code></pre>
  
  <p>I get this <code>RegionDTO</code> object populated:</p>
  
  <p>RegionDTO.id --> 4<br/>
  RegionDTO.name --> "This is the name"<br/>
  RegionDTO.country_id --> <strong>null</strong><br/></p>
  
  <p>And If I re-order the elements of this xml to this:</p>
  
  <pre><code>&lt;RegionDTO xmlns="http://www.mysite.com/api"&gt;
  &lt;country_id&gt;1&lt;/country_id&gt;
  &lt;id&gt;4&lt;/id&gt; 
  &lt;name&gt;This is the name&lt;/name&gt;
  &lt;/RegionDTO&gt;
  </code></pre>
  
  <p>I get this <code>RegionDTO</code> object correctly populated:</p>
  
  <p>RegionDTO.id --> 4<br/>
  RegionDTO.name --> "This is the name"<br/>
  RegionDTO.country_id --> <strong>1</strong><br/></p>
  
  <p>Technical specification? .NET 4, self hosted</p>