[Xml-compile] XML::Compile::WSDL1, timeout and userAgent options

Mark Overmeer mark at overmeer.net
Wed Nov 17 11:32:52 GMT 2010


I now understand this. There will be ways to do this much
nicer in XML::Compile::SOAP 2.20 (to be released)  With that
release, you can do:

   my $trans = XML::Compile::Transport::SOAPHTTP
     ->new(timeout => 500, address => $wsdl->endPoint);

   $wsdl->compileCalls(transport => $trans);

   my $answer = $wsdl->call(myMethod => $request);



* Bernd Web (bernd.web at gmail.com) [101028 14:59]:
> 
> 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,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list