Can someone explain technically how SOAP timeout is implemented in PHP?

currently I am working on project where multiple SOAP calls are performed. Achieving better user experience is client’s main goal, so with that in mind he requested to limit duration of each SOAP call. I’ve read PHP documentation (PHP SOAP Client) and explored some of the options like setting default_socket_timeout but I’ve done time logging before and after SOAP calls and nothing seems to work – response times are still much longer (sometimes 10+ secounds) then timeouts which I sett by methods mentioned above.

I would kindly ask you for any reference which would point me in right direction – to better understand what’s going on in SOAP requests and what was meant by “connection_timeout” in SoapClient options array (how is it implemented, does SOAP server literally perform closing connection)?

Best regards and thank you in advance 🙂



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s