Subject: | Deprecation of uri method is confusing |
My existing code uses "SOAP::Lite->uri($uri)" to get started. I am
seeing this 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 /Users/chris/perl/lib/perl5/site_perl/SOAP/Lite.pm line 858.
I was VERY confused because "grep -r use_default" yielded nothing in my
own software. I had to look at the SOAP::Lite CHANGES document (which
is out of date) to figure out that uri() is deprecated too, but isn't
mentioned in the deprecation warning.
Two fixes are needed:
1) uri() needs to be mentioned in the warning
2) SOAP::Lite should not call it's own deprecated methods
uri() should call ns_default, not use_default
-- Chris