From: Robert L. <rla...@ao...> - 2007-10-04 16:03:25
|
Martin Kutter wrote: > > b) all initialization (or whatever a user has done to the transport > layer between calling new() and the next method call) is lost, as > there's alway a fresh method there. > > This means that users cannot set LWP::UserAgent's characteristica by > calling $soap->transport->some_lwp_method(1);, because send_receive (at > least in the HTTP transport class) might call $self->endpoint, and thus > operate on a new object. I noticed this too... But I tracked the new method back and it appears to actually do the right thing... Depending on the inheritance of SOAP::Client, that is... In other words, almost all the $obj->new methods in Lite.pm do the following... sub new { my $self = shift; return $self if ref $self; ... } So the new method isn't really creating new objects, which is definitely confusing... :) Rob |