Timeout issue-does not work even when timeout is set
| From: | Tan Ai Leen | Date: | Tue, 06 Jan 2004 19:34:03 +0000 |
| Subject: | Timeout issue-does not work even when timeout is set | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1286@lists.php.net to get a copy of this message | ||
Hi,
I have this class that creates a web service client and call the method.
It took 18s for the script to finish executing. I will get the time out read from ip when I run the script. But this only happened when I am using a browser or command-line, not with XMLspy to send the request. I have set the timeout variable as advised by other posts in this newsgroup. Funny that it works for them but not for me.
My code:
$client = new SOAP_Client($this->config['wsdlURL']);
$client->setOpt('timeout', 200);
Is there any other methods to make this work? Could it be because of I am using a script to call the web service that caused the timeout?(note that when using XMLspy to call the web service, it is working)
Thanks for replying
Ai Leen