Subject: | No support for <nil/> extension |
Date: | Thu, 03 Jul 2008 14:21:38 +0200 |
To: | bug-XML-RPC [...] rt.cpan.org. |
From: | Nanning Buitenhuis <nanning [...] elvenkind.com> |
Extension documented here:
http://ontosys.com/xml-rpc/extensions.php
Test environment (not really important)
RPM: perl-RPC-XML-0.59-3mdv2008.1.noarch
PERL: v5.10.0 built for i386-linux-thread-multi
Problem can be easily solved by adding 'nil' to the VALIDTYPES:
RPC/XML/Parser.pm #72
===OLD===
use constant VALIDTYPES => { map { $_, 1 } qw(int i4 string double reference
boolean dateTime.iso8601
base64) };
===NEW===
use constant VALIDTYPES => { map { $_, 1 } qw(int i4 string double reference
boolean dateTime.iso8601
base64 nil) };
===END===
and creating minimal datatype support:
RPC/XML.pm #269
===OLD===
===NEW===
###############################################################################
#
# Package: RPC::XML::nil
#
# Description: Data-type class for integers
#
###############################################################################
package RPC::XML::nil;
use strict;
use vars qw(@ISA);
@ISA = qw(RPC::XML::simple_type);
sub value { return; };
sub as_string {return '<nil/>';}
===END===