title: How to retrieve the size of a file in a document library in sharepoint through webservices using Java
body: <p>I'm writting an application in Java which has to report all available files in a document library on SharePoint 2007. The application uses the java sharepoint library from korecky (<a href="http://code.google.com/p/java-sharepoint-library/" rel="nofollow">Project Home</a>). Everything works fine except for the fact, that beside of several file information I don't get the file size.  </p>
  
  <p>Concretely, a request is send to the List.asmx webservice calling the GetListItems method.</p>
  
  <p>The request looks as follows:</p>
  
  <pre><code>&lt;QueryOptions&gt;
      &lt;ViewAttributes IncludeRootFolder="True" Scope="RecursiveAll"/&gt;
      &lt;IncludeMandatoryColumns&gt;
          TRUE
      &lt;/IncludeMandatoryColumns&gt;
      &lt;DateInUtc&gt;
          TRUE
      &lt;/DateInUtc&gt;
  &lt;/QueryOptions&gt;
  </code></pre>
  
  <p>According to several forums in the response from the webservice there should be an field available named <strong>ows_File_x0020_Size</strong> that should contain an int representing the file size, but it is missing. Does anybody have an idea how the request needs to be modified to also receive the file size?</p>