Skip Menu |
 

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

Report information
The Basics
Id: 32188
Status: resolved
Priority: 0/
Queue: SOAP-WSDL

People
Owner: Nobody in particular
Requestors: A.Hindmarsh [...] office.caiw.nl
Cc:
AdminCc:

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 [...] rt.cpan.org>
From: "Ashley Hindmarsh" <A.Hindmarsh [...] office.caiw.nl>
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/Typemap.pm 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 http://search.cpan.org/~mkutter/SOAP-WSDL-2.00_28/ Perl 5.8.8 FreeBSD tagans.caiw.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed May 16 11:44:28 CEST 2007 strommel@tagans.caiw.net:/usr/obj/usr/src/sys/CN 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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.