title: How Can I receive the GetListItems from Sharepoint List using SOAP?
body: <p>I need to get the list items from SharePoint List.</p>
  
  <p>I'm doing that locally. I've tried using this code:</p>
  
  <pre><code>&lt;script src="//code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      $(document).ready(function() {
          var listName = "Backlog";
          makeSoapCall(listName);
      });
  
  function makeSoapCall(listName){
      var soapEnv =
      "&lt;soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'&gt; \
        &lt;soap:Body&gt; \
          &lt;GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'&gt; \
            &lt;listName&gt;" + listName + "&lt;/listName&gt; \
            &lt;viewName&gt;&lt;/viewName&gt; \
            &lt;query&gt;&lt;/query&gt; \
            &lt;viewFields&gt;&lt;/viewFields&gt; \
            &lt;rowLimit&gt;&lt;/rowLimit&gt; \
            &lt;queryOptions&gt;&lt;/queryOptions&gt; \
            &lt;webID&gt;&lt;/webID&gt; \
          &lt;/GetListItems&gt; \
        &lt;/soap:Body&gt; \
      &lt;/soap:Envelope&gt;"
  
    $.ajax({
      url: "http://server/site/_vti_bin/Lists.asmx",
      type: "POST",
      dataType: "jsonp",
      data: soapEnv,
      complete: resultsFeedback,
      contentType: "application/json; charset=\"utf-8\""
    });
  
  }
  
  function resultsFeedback(xData, status) {
      console.log("xData: " + xData);
      console.log("status: " + status);
  }
  </code></pre>
  
  <p></p>
  
  <p>Then, I received this message:</p>
  
  <pre><code>Resource interpreted as Script but transferred with MIME type text/html: "http://server/site/_vti_bin/Lists.asmx?callback=jQuery11100353987290…stItems%3E%20%20%20%3C/soap:Body%3E%20%3C/soap:Envelope%3E&amp;_=1396538736189". jquery-1.11.0.min.js:4 Uncaught SyntaxError: Unexpected token &lt; Lists.asmx:3
  
  xData: [object Object] report.html:37
  status: parsererror
  </code></pre>
  
  <p>Can anyone help?</p>
  
  <p>Thanks in advance.
  Edson Martins</p>