Hejsa,
Jeg leger lidt med SOAP::Lite, men jeg bliver ved med at få en
advarsel i server enden.
Jeg burger pakken SOAP-Lite-0.66-11 på en SUSE-10.1 maskine.
Serveren:
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Transport::HTTP;
my $daemon = SOAP::Transport::HTTP::Daemon
-> new (LocalAddr => 'localhost',
LocalPort => 12345,
Reuse => 1);
$daemon->dispatch_to('loctim');
$daemon->handle;
sub loctim
{
my ($self, $x) = @_;
my $lt = localtime($x);
return "$x = $lt";
}
Klienten:
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Lite;
my $S = SOAP::Lite
-> proxy("
http://localhost:12345");
my $t = $S->loctim(time()) -> result();
warn "t = $t\n";
Men serveren siger:
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/vendor_perl/5.8.8/SOAP/Lite.pm line 858.
for hvert kald.
Det synes jeg er træls! Hvad synes I? Forslag?
/Morten