title: Consuming SOAP and REST WebServices at the same time in PHP
body: <p>My objective is consume various Web Services and then merge the results.</p>
  
  <p>I was doing this using <a href="http://php.net/manual/en/function.curl-exec.php" rel="nofollow">PHP cURL</a>, but as the number of Web Services has increased, my service slowed since the process was waiting for a response and then make the request to the next Web Service.</p>
  
  <p>I solved this issue using <a href="http://php.net/manual/en/function.curl-multi-init.php" rel="nofollow">curl_multi</a> and everything was working fine.</p>
  
  <p>Now, I have a new problem, because I have new Web Services to add in my service that use <a href="http://www.w3.org/TR/soap/" rel="nofollow">Soap Protocol</a> and I can't do simultaneous requests anymore, because I don't use cURL for Soap Web Services, I use <a href="http://php.net/manual/en/soapclient.soapclient.php" rel="nofollow">SoapClient</a>.</p>
  
  <p>I know that I can make the XML with the soap directives and then send it with cURL, but this seems to me a bad practice.</p>
  
  <p>In short, is there some way to consume REST and SOAP Web Services simultaneously?</p>