NicToolServerAPI.pm && SOAP::Lite 0.66

Started by shaun, December 26, 2005, 03:15:02 PM

Previous topic - Next topic

shaun

It looks like SOAP::Lite 0.66 changed a few things... I am now receiving this error when using the NicToolServerAPI on servers with SOAP::Lite version 0.66.

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 /usr/lib/perl5/site_perl/5.8.7/SOAP/Lite.pm line 858.


SOAP::Lite apparrently changed their versioning too because the SOAP::Lite version on other servers that dont have this problem shows 1.11 but but then some internal release number of 0.60.

Anyway, so far i've been unable to find the cause or how to correct the NicToolServerAPI.pm.  I cant find use_prefix in the code so i'm not sure whats going on here...

shaun

i changed uri to ns_uri in the NicToolServerAPI.pm and it looks to have corrected the problem.  Here's the patch to apply to the nictool client source for 2.03

--- NicToolClient-2.03.orig/lib/NicToolServerAPI.pm     2005-05-17 20:28:23.000000000 -0700
+++ NicToolClient-2.03/lib/NicToolServerAPI.pm  2005-12-28 12:38:12.000000000 -0800
@@ -94,7 +94,7 @@
               #location of NicToolServer soap server
               proxy=>$url.'/soap',
               #URI is typically org name followed by module path
-               uri=>"http://$NicToolServerAPI::server_host/NicToolServer/SOAP" target="_blank">http://$NicToolServerAPI::server_host/NicToolServer/SOAP",
+               ns_uri=>"http://$NicToolServerAPI::server_host/NicToolServer/SOAP" target="_blank">http://$NicToolServerAPI::server_host/NicToolServer/SOAP",
               #don't die on fault, just return result.
               on_fault=>sub {my ($soap,$res)=@_; return $res;}
       );