Re: Timeout issue-does not work even when timeout is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I wish that it is the case but it is not. The script execution time is set to 0 in the php.ini. Are there anything else that I can set to increase the time allow for web service clients to contact the web service server?

Regards,
Ai Leen

Mike Carter wrote:
Hi,

Could it be that the PHP script calling the first webservice is timing out
(30 seconds as standard in the php.ini) whilst calling the 2nd webservice
and wating for the response.

Regards,


Mike C.



-----Original Message-----
From: Tan Ai Leen [mailto:tan_ai_leen9@hotmail.com] Sent: 07 January 2004 01:32
To: soap@lists.php.net
Subject: Re: Timeout issue-does not work even when timeout is set



No, I am not using curl.
My script calls web service A and then web service A will in turn call web service B. I know that the timeout occur when I am made a call to web service B because there is no timeout error when I comment out the object instantiation for the class that calls web service B.


Here's the error message:

soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => HTTP [message] => Timed out read from 202.95.185.176 [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /usr/share/pear/SOAP/Fault.php [line] => 49 [function] => pear_error [class] => pear_error [type] => :: [args] => Array ( [0] => Timed out read from 202.95.185.176 [1] => HTTP [2] => [3] => [4] => ) ) [1] => Array ( [file] => /usr/share/pear/SOAP/Base.php [line] => 199 [function] => soap_fault [class] => soap_fault [type] => -> [args] => Array ( [0] => Timed out read from 202.95.185.176 [1] => HTTP [2] => [3] => [4] => [5] => ) ) [2] => Array ( [file] => /usr/share/pear/SOAP/Transport/HTTP.php [line] => 510 [function] => _raisesoapfault [class] => soap_transport_http [type] => -> [args] => Array ( [0] => Timed out read from 202.95.185.176 ) ) [3] => Array ( [file] => /usr/share/pear/SOAP/Transport/HTTP.php [line] => 153 [function] => _sendhttp [class] => soap_transport_http [type] => -> [args] => Array ( [0] => 3197 bbc gobbc243 uiyeb2207012004032317 1073416997 36036 60127590176 ikr hello 0 [1] => Array ( [trace] => 0 [input] => parse [result] => parse [parameters] => [soapaction] => urn:ws#bbcserver#deliverMOMessage [namespace] => [style] => rpc [use] => encoded ) ) ) [4] => Array ( [file] => /usr/share/pear/SOAP/Client.php [line] => 264 [function] => send [class] => soap_transport_http [type] => -> [args] => Array ( [0] => 3197 bbc gobbc243 uiyeb2207012004032317 1073416997 36036 60127590176 ikr hello 0 [1] => Array ( [trace] => 0 [input] => parse [result] => parse [parameters] => [soapaction] => urn:ws#bbcserver#deliverMOMessage [namespace] => [style] => rpc [use] => encoded ) ) ) [5] => Array ( [file] => /var/www/html/dreamscape_mg/fireMO.php [line] => 37 [function] => call [class] => soap_client [type] => -> [args] => Array ( [0] => deliverMOMessage [1] => Array ( [ApplicationId] => 3197 [Login] => bbc [Password] => gobbc243 [Authcode] => uiyeb22[DateTime] => 07012004032317 [MessageOriginatingId] => 1073416997 [ShortCode] => 36036 [ReceiverMSISDN] => 60127590176 [Message] => ikr hello [Language] => 0 ) ) ) ) [callback] => )
This execution took 4.0490440130234 seconds


Laurent Buhler wrote:

$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





________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

-- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux