title: Should a web service response include empty values?
body: <p>When invoking a web service I get a dynamic response in XML format.</p>
  
  <p>So response could be : </p>
  
  <pre><code>&lt;response&gt;
  &lt;test1&gt;test1&lt;/test1&gt;
  &lt;test2&gt;test1&lt;/test2&gt;
  &lt;test3&gt;test1&lt;/test3&gt;
  &lt;test4&gt;test1&lt;/test4&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>or : </p>
  
  <pre><code>&lt;response&gt;
  &lt;test1&gt;test1&lt;/test1&gt;
  &lt;test2&gt;test1&lt;/test2&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>But I think the response should be static in order for the Java class to be unmarshalled correctly from the XML.</p>
  
  <p>So instead of </p>
  
  <pre><code>&lt;response&gt;
  &lt;test1&gt;test1&lt;/test1&gt;
  &lt;test2&gt;test1&lt;/test2&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>This should be : </p>
  
  <pre><code>&lt;response&gt;
  &lt;test1&gt;test1&lt;/test1&gt;
  &lt;test2&gt;test1&lt;/test2&gt;
  &lt;test3&gt;&lt;/test3&gt;
  &lt;test4&gt;&lt;/test4&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>This means I can now handle the response and check for missing data.</p>
  
  <p>Am I correct in my thinking?</p>