Subject: | SOAP::Lite +trace => all with handler does not print object names |
Date: | Thu, 18 Sep 2014 14:44:59 +0300 |
To: | bug-SOAP-Lite [...] rt.cpan.org |
From: | Max Gusakov <gusakov.max [...] gmail.com> |
Perl: v5.18.1
SOAP::Lite: 1.11
OS: openSUSE 13.1 (x86_64)
also reproduced on
Perl v5.10
SOAP::Lite 1.06
OS: Oracle Linux Server release 6.5 (x86_64)
Issue description:
I'm trying to track down the way SOAP::Lite establishes and closes
connection, and processes requests within my application (it works as a
background process and can write only to STDOUT).
According to CPAN documentation I should add trace => all (or
trace=>objects), to see desired information. It works fine untill I try to
add hadler to print output to
STDOUT (or simply format it).
Below is a script that illustrates the problem:
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Lite
+trace => [ qw(objects)
# comment the line below to see expected output
=> sub { print("@_\n") }
];
my $server = SOAP::Lite
-> uri('http://www.soaplite.com/Temperatures')
->proxy('http://services.soaplite.com/temper.cgi');
my $result = $server-> f2c(100)->result;
Without handler it prints smth. like
...
SOAP::Transport::new: ()
SOAP::Serializer::new: ()
SOAP::Deserializer::new: ()
...
And if I add handler, the only thing I see is
()
()
()
--
With best regards
Max