$this->setOpt('curl', CURLOPT_TIMEOUT, $GLOBALS['g_ps']['MedVisor']['connectionTimeout']); Hi, Do you know what is raising the timeout ? Hint: you might use curl, in that case you might need to change curl timeout with $client->setOpt('curl', CURLOPT_TIMEOUT, 120); after you instantiate your client. > -----Original Message----- > From: Tan Ai Leen [mailto:tan_ai_leen9@hotmail.com] > Sent: Tuesday, January 06, 2004 11:34 AM > To: soap@lists.php.net > Subject: Timeout issue-does not work even when timeout is set > > 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 > > -- > PHP Soap Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php