RE: [SOAP] Timeout issue-does not work even when timeout is set
| From: | Paul Miller | Date: | Mon, 02 Feb 2004 22:22:49 +0000 |
| Subject: | RE: [SOAP] Timeout issue-does not work even when timeout is set | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1333@lists.php.net to get a copy of this message | ||
Tan,
If you are not using CURL, what are you using to send and receive your
SOAP envelopes? What ever that is, you might want to check the timeout
limit on that.
- Paul
-----Original Message-----
From: Chia, Chin Yau [mailto:chiacy@wysmove.com]
Sent: Monday, February 02, 2004 3:59 PM
To: soap@lists.php.net
Subject: Re: [SOAP] Timeout issue-does not work even when timeout is set
Hi Tan,
I am having similar problem too using pear soap to connect to similar
web service. However, if I use NuSOAP, it seems that the request goes
forever. Any tip from your side??
Rgds,
chiacy
Tan Ai Leen wrote:
> 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: [SOAP] 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: [SOAP] 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