SOAP-WSDL - Re: Modify default timeout

Posted on Sat May 3 03:01:44 2008 by noah in response to 7799 (See the whole thread of 9)
Re: Modify default timeout
A proxy() method is provided for backwards compatibility; running this:
my $soap = MyInterfaces::MyService::ServicePort->new(); $soap->proxy($proxy, timeout => 1);
...against simple server which sleeps for 5 seconds when processing a request results in a timeout after ~1s. If you wish to bypass the backward compatibility, you can do retrieve the transport object and set the timeout on it, like this:
my $soap = MyInterfaces::MyService::ServicePort->new(); $soap->get_transport()->timeout(1);
Noah
Direct Responses: 7911 | 7928 | Write a response