title: Getting Data from a SOAP envelope
body: <p>I am trying to populate a gadget with a sharepoint list, but I couldn't find any way or tutorial on google to help me with this, however I find this tutorial that is getting the XML feedbacks of a news website, and displaying them in a list.</p>
  
  <p><a href="http://vishsharepoint.blogspot.co.uk/2012/05/get-sharepoint-list-data-using.html" rel="nofollow">Tutorial for Making a Gadget that gets XML feedbacks off a news Site</a></p>
  
  <p>Now Instead of getting XML feedback from that News Website, I want this tutorial to display items of XML document I will get throught this piece of code,</p>
  
  <pre><code>$(document).ready(function() 
  {
      var soapEnv =
          "&lt;soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'&gt; 
              &lt;soapenv:Body&gt; 
                   &lt;GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'&gt; 
                      &lt;listName&gt;ListName&lt;/listName&gt; 
                      &lt;viewFields&gt; 
                          &lt;ViewFields&gt; 
                             &lt;FieldRef Name='Title' /&gt; 
                         &lt;/ViewFields&gt; 
                      &lt;/viewFields&gt; 
                  &lt;/GetListItems&gt; 
              &lt;/soapenv:Body&gt; 
          &lt;/soapenv:Envelope&gt;";
  
      $.ajax({
          url: "http://my_site/_vti_bin/lists.asmx",
          type: "POST",
          dataType: "xml",
          data: soapEnv,
          complete: processResult,
          contentType: "text/xml; charset="utf-8""
      });
  });
  
  function processResult(xData, status) {
      $(xData.responseXML).find("z\:row").each(function() {
          alert($(this).attr("ows_Title"));
      });
  }
  </code></pre>
  
  <p>I got no clue about how can i do this trick, but please can you atleast just guide me, how can i accomplish this task, + what things should i look into or learn, as google is not helping me with my queries at all :/.</p>