Consume multiple WebServices with PHP at the same time (SOAP and REST)

0

Basically, I need to consume multiple Web Services and then merge the results.

I was using cURL with PHP to make the requisitions, but as the number of Web Services increased , my service slowed down, since it was necessary to wait for a response and then request the next Web Service.

I solved this problem using curl_multi and everything was working properly.

What happens is that I have new Web Services to add to my service, but these new ones use the SOAP and I am no longer able to make simultaneous requests, because to query Web Services SOAP I use SoapClient and not cURL.

I know I can do the SOAP XML "on hand" and then send it along with others using cURL, but this seems like a bad practice.

In short, is there any way to consume REST and SOAP Web services simultaneously with PHP?

I asked this same question on SO_en , but got no response.

    
asked by anonymous 03.08.2015 / 21:19

0 answers