Subject: | XMLRPC::Lite "wrong element 'nil'" exception on '<value><nil/></value>' |
XMLRPC::Lite 0.68 generates an exception when a clause like:
'<value><nil/></value>'
is encountered in a legal methodResponse, like the one attached,
is parsed. The same methodResponse parses fine with XML::Parse .
The attached SOAP-Lite-0.68-nil-value.patch fixes the problem,
and is already applied in the latest Fedora Extras
perl-SOAP-Lite-0.68-1.fc6 RPM.
Is there something not allowed about a '<value><nil/></value>' clause ?
If so, please let us know what is wrong with it.
If not, please apply the patch / fix the issue in the next
perl-SOAP-Lite release - our big XMLRPC app generates lots of
such clauses .
Thank you,
Jason Vas Dias<jvdias@redhat.com>
perl package maintainer
Red Hat, Inc.
Subject: | methodResponse |
Message body not shown because it is not plain text.
Subject: | SOAP-Lite-0.68-nil-value.patch |
--- SOAP-Lite-0.68/lib/XMLRPC/Lite.pm.nil_value 2004-11-14 14:30:50.000000000 -0500
+++ SOAP-Lite-0.68/lib/XMLRPC/Lite.pm 2006-07-18 13:06:53.000000000 -0400
@@ -286,6 +286,8 @@
return +{map {$self->decode_object($_)} @{$children || []}};
} elsif ($name =~ /^(?:param|fault)$/) {
return scalar(($self->decode_object($children->[0]))[1]);
+ } elsif ($name =~ /^(?:nil)$/) {
+ return undef;
} else {
die "wrong element '$name'\n";
}