[Xml-compile] XML::Compile::WSDL1, timeout and userAgent options
Bernd Web
bernd.web at gmail.com
Thu Oct 28 11:59:26 GMT 2010
Hi
Actually, using the code
my $trans = XML::Compile::Transport::SOAPHTTP->new(
timeout => 500,
address => 'http://soap_server_address'
);
my $soapSrv = XML::Compile::WSDL11->new($wsdlXml,
opts_rw => [transport => $trans]
);
my $call = $soapSrv->compileClient(...)
does not change the timeout of the call. It only seems to work when
$trans is (also) supplied to compileClient.
I now use:
my $soapSrv = XML::Compile::WSDL11->new($wsdlXml);
my $trans = XML::Compile::Transport::SOAPHTTP->new(
timeout => 1,
address => $soapSrv->operation('myMethod')->endPoints
);
my $call = $soapSrv->compileClient('myMethod', transport=>$trans);
This changes the timeout, omitting the transport option from
compileClient, also with the " opts_rw => [transport => $trans]"
present in $soapSrv does not change the timeout.
Regards,
Bernd
More information about the Xml-compile
mailing list