title: Retrieve value from WSDL using SOAP - PHP
body: <p>I have a very poor, in structure, WSDL file and I can't understand how I can retrieve information from it.</p>
  
  <blockquote>
    <p>VM is not accessible from an outside network so I can't share the whole WSDL file</p>
  </blockquote>
  
  <p>I would like to use <code>getList</code> function that takes an argument and returns a string, with multiple values.</p>
  
  <pre><code>SOAP Request
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;S:Header/&gt;
      &lt;S:Body&gt;
          &lt;ns2:getList xmlns:ns2="http://Wishlist.eBookCafe/"&gt;
              &lt;arg0&gt;2&lt;/arg0&gt;
          &lt;/ns2:getList&gt;
      &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  
  SOAP Response
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;S:Body&gt;
          &lt;ns2:getListResponse xmlns:ns2="http://Wishlist.eBookCafe/"&gt;
              &lt;return&gt;[1]&lt;/return&gt;
          &lt;/ns2:getListResponse&gt;
      &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  </code></pre>
  
  <p>My question is, because value is included inside <code>return</code> tag, I don't know how I can store it in a PHP variable using SOAP. </p>
  
  <pre><code>$list = $service-&gt;getList(array('arg0'=&gt;$id));
  print_r($list);
  </code></pre>
  
  <p>Even if I am using static numbers as passing arguments it always returns the values that contained to the user with id = 1. </p>