Subject: | XML Schema types with names cuase errors when including anonymous types |
Date: | Wed, 25 Mar 2009 09:13:55 +0100 |
To: | bug-SOAP-WSDL [...] rt.cpan.org |
From: | Martin Kutter <martin.kutter [...] fen-net.de> |
Sara reported on CPAN forum http://www.cpanforum.com/threads/10291 :
Given this XML schema block
<xsd:complexType name="test.name">
<xsd:sequence>
<xsd:element name="test.atomic"
minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="0" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
wsdl2perl generates a package named $prefix\test::name containing a
package named $prefix\test::name::_test.atomic.
This of course fails to load, as package names must not include a "."
Martin