title: How SOAP and REST work with XML/JSON response?
body: <p>This is one very common question asked again and again on stack overflow and I read so many answers about this but I am still bit confused.</p>
  
  <p>I need to call the webservices from iPhone sdk.</p>
  
  <p>Here are my questions:</p>
  
  <ol>
  <li><p>I am not clear what response SOAP or REST return.Is there anything specific that if response is XML then we should use REST and if JSON we should use SOAP?</p></li>
  <li><p>What is the role of ASIHTTP with SOAP and REST?</p></li>
  <li><p>If I am getting XML response as</p></li>
  </ol>
  
  <blockquote>
  <pre><code>&lt;oproduct&gt;
      &lt;iid&gt;113133791&lt;/iid&gt;
      &lt;icategoryid&gt;270&lt;/icategoryid&gt;
      &lt;imerchantid&gt;1547&lt;/imerchantid&gt;
      &lt;iadult&gt;0&lt;/iadult&gt;
      &lt;sname&gt;The Ashes / 1st Test - England v Australia - Day 1&lt;/sname&gt;
      &lt;sawdeeplink&gt;http://www.acbcd.com/pclick.php?p=113133791&amp;amp;a=111402&amp;amp;m=1547&amp;amp;platform=cs&lt;/sawdeeplink&gt;
      &lt;sawthumburl&gt;http://images.abcdd.com/thumb/1547/113133791.jpg&lt;/sawthumburl&gt;
      &lt;fprice&gt;69.99&lt;/fprice&gt;
    &lt;/oproduct&gt;
  </code></pre>
  </blockquote>
  
  <p>Do I need to parse it by hand? or how do I handle XML response?</p>
  
  <p>I got so many articles about REST and SOAP but no proper code to understand it.
  I would be grateful for any help regarding these questions.</p>