Subject: | XMLRPC::Lite->proxy(ENDPOINT) cause warning in SOAP-Lite-0.66 |
In the script like following, I got a warning that was not
the case in SOAP-Lite-0.65_6.
The code is:
---------------- sample.pl ------------
use lib 'SOAP-Lite-0.66/lib';
use XMLRPC::Lite;
use LWP::Debug qw(+);
use YAML;
use strict;
use Carp;
local $SIG{__WARN__} = \&Carp::cluck;
local $SIG{__DIE__} = \&Carp::cluck;
my $endpoint="http://localhost/test.php";
my $api=XMLRPC::Lite->proxy($endpoint);
$api->call('system.listMethods',undef);
print YAML::Dump($api->transport->http_response->content);
---------------- sample.pl ------------
and I got:
Show quoted text
---------------- warning ------------
use_prefix has been deprecated. if you wish to turn off or on the use of a default namespace, then please use either ns(uri) or default_ns(uri) at SOAP-Lite-0.66/lib/SOAP/Lite.pm line 858.
---------------- warning ------------
The patch will fix, I think.
--- lib/XMLRPC/Lite.pm 2004-11-15 04:30:50.000000000 +0900
+++ lib/XMLRPC/Lite.pm.new 2006-01-04 12:37:59.287102400 +0900
@@ -333,7 +333,7 @@
serializer => XMLRPC::Serializer->new,
deserializer => XMLRPC::Deserializer->new,
on_action => sub {return},
- uri => 'http://unspecified/',
+ default_ns => 'http://unspecified/',
@_
);
}