Skip Menu |

This queue is for tickets about the XML-RPC CPAN distribution.

Report information
The Basics
Id: 37371
Status: rejected
Priority: 0/
Queue: XML-RPC

People
Owner: Nobody in particular
Requestors: nanning [...] elvenkind.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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===
This is a bug report for RPC::XML, but this the bugtracker for XML::RPC. Yeah, i know, i know, naming conventions in CPAN :-(