title: Sharepoint webservices - Getlistviewitems always return default view
body: <p>I'm using SharePoint 2013 web services to retrieve elements in a list. It works fine with the default view but I get the same result with other views as well.</p>
  
  <p>This is the soap query I'm using.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;soap:Body&gt;
      &lt;GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt;
        &lt;listName&gt;{011C5977-B4FE-4044-8EA5-971552602039}&lt;/listName&gt;
        &lt;viewName&gt;{A42BE5F6-910E-4D93-8E51-58D43CC8C00A}&lt;/viewName&gt;
        &lt;query&gt;
          &lt;Query xmlns=""&gt;
            &lt;OrderBy/&gt;
            &lt;Where&gt;
              &lt;Eq&gt;
                &lt;FieldRef Name="FSObjType"/&gt;
                &lt;Value Type="Lookup"&gt;0&lt;/Value&gt;
              &lt;/Eq&gt;
            &lt;/Where&gt;
          &lt;/Query&gt;
        &lt;/query&gt;
        &lt;viewFields&gt;
          &lt;ViewFields xmlns=""/&gt;
        &lt;/viewFields&gt;
        &lt;queryOptions&gt;
          &lt;QueryOptions xmlns=""/&gt;
        &lt;/queryOptions&gt;
      &lt;/GetListItems&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>