title: SOAP client produces memory error by large response
body: <p>I'm stuck with a strange issue. Below my code:</p>
  
  <pre><code>$response = $client-&gt;__soapCall('ProcessXmlString', [['xmlRequest' =&gt; $xml]]);
  </code></pre>
  
  <p>XML is something like this:</p>
  
  <pre><code>&lt;columns code=".."&gt;
      &lt;column id=".."&gt;
          &lt;field&gt;...&lt;/field&gt;
          &lt;label&gt;test&lt;/label&gt;
          &lt;visible&gt;true&lt;/visible&gt;
          &lt;ask&gt;false&lt;/ask&gt;
          &lt;operator&gt;none&lt;/operator&gt;
          &lt;from&gt;&lt;/from&gt;
          &lt;to&gt;&lt;/to&gt;
          &lt;finderparam&gt;...&lt;/finderparam&gt;
      &lt;/column&gt;
  &lt;/columns&gt;
  </code></pre>
  
  <p>When I run this code I get a memory error: </p>
  
  <p><em>Allowed memory size of 134217728 bytes exhausted (tried to allocate 65183479 bytes) ...</em></p>
  
  <p>As you can see the response is just about 60MB's. I thought SoapClient just handle things in chunks? (request with less data works perfectly)</p>
  
  <p>I don't want to set my memory limit higher but want to handle response part by part.</p>
  
  <p>I don't really get it why this error occurred. Does anybody has a idea / solution? </p>
  
  <p>I'm using php version 5.6 and SOAP version 1.2</p>
  
  <p>Thanks in advance,</p>
  
  <p>Niels</p>