Good day everyone,
I've been having performance issues with the consumption of my web service on my web application. Precisely, every single SOAP request is extremely slow.
To begin with, here is my setup:
- PHP SOAP extension
- PHP v.5.2.14 (Latest)
- The server is running under Linux
- The setting in php.ini soap.wsdl_cache_enabled=1 (Switching this to 0 doesn't seem to affect the performances in any way)
- The SOAP server is situated on the same server (same IP address) as the SOAP client.
I've narrowed my researches and I am 100% sure the problem comes from the server, but I just cannot find where the problem comes from.
When I execute the code below on my local machine using WampServer (PHP 5.2.11), the request is almost instantaneous whereas if I execute the same code on my server, it takes about 5 to 10 seconds before I get the response.
I must be missing something. Normally, the request should be faster when executed on the server since it's consumming a web service locally.
$client = new SoapClient('http://www.mywebserveraddress.gov/inventory.wsdl');
$response = $client->getProductDescription(5467);
catch (SoapFault $exception)