On Thu, Dec 10, 2015 at 9:43 AM, Mark Overmeer <[email protected]> wrote:
>
> Hi Matthew,
>
> I think this should do the trick:
>
> * Matthew Horsfall (alh) ([email protected]) [151210 14:33]:
>> my $svc = XML::Compile::WSDL11->new($file, prefixes => \%prefixes);
>> $svc->compileCalls();
>
>   +  my $ua = LWP::UserAgent->new(keep_alive => 1);
>   +  $svc->compileCalls(user_agent => $ua);
>>
>> my $res = $svc->call(...)
>
> Calls are compiled the first time they are used, or when you explicitly
> use compileCalls()    [call that before your daemon starts forking, if
> this is in an daemon]
>
> Does that work?

Ah, that does, thanks!

I thought I had seen some sort of problem in the past with overriding
the LWP, but I may be confusing that with overriding transport
perhaps.

Thanks,

-- Matthew Horsfall (alh)

_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile

Reply via email to