Skip Menu |

This queue is for tickets about the SOAP-WSDL CPAN distribution.

Report information
The Basics
Id: 32188
Status: resolved
Priority: 0/

Owner: Nobody in particular
Requestors: A.Hindmarsh [...]

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

Subject: minor bug found and fixed in WSDL generation
Date: Wed, 9 Jan 2008 12:42:01 +0100
To: <bug-SOAP-WSDL [...]>
From: "Ashley Hindmarsh" <A.Hindmarsh [...]>
Download (untitled) / with headers
text/plain 1.1k
I can't release the WSDL (confidentiality), but I'm sure it's a problem with empty XSD complex types (e.g. <sequence/>), and the get_element() function returning an unchecked undef. The error: Can't use an undefined value as an ARRAY reference at /usr/local/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Generator/Visitor/Typemap .pm line 248 In SOAP/WSDL/Generator/Visitor/ Patch: -------------------------------- if ( grep { $_ eq $content_model} qw(all sequence choice) ) { # visit child elements - for (@{ $type->get_element() }) { - $_->_accept( $self ); - } + if (my $elements = $type->get_element()) { + for (@$elements) { + $_->_accept( $self ); + } + } return; } --------------------------------- Distro Perl 5.8.8 FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed May 16 11:44:28 CEST 2007 i386 Regards, Ashley Hindmarsh / on behalf of CAIW Netwerken (I am not an employee, but a contractor)
Fixed in rev487 in SVN. Thanks for reporting, Martin

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to