views:

72

answers:

1

Is there anyway for a SoapClient Request to time out and throw an exception. As of now, I get PHP Server response timeout, in my case 60 seconds. Basically what I want is, if there isn't any reply from the Web Service within certain time, an exception would be thrown and I could catch it. The 60 seconds warning is not what I want.

Is it possible to do this?

A: 

Have a look at http://www.darqbyte.com/2009/10/21/timing-out-php-soap-calls/ if you are comfortable and your environment allows you to extend classes.

It basically extends the SoapClient class so you can handle timeouts yourself.

Andrei Serdeliuc
Thanks. That would be one place to have a look.Lets see if there is any other.
Gunner