I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-04-16 04:27:23-07 by noah
General WSDL question
Having just gone through a WSDL I was given in an effort to make SOAP::WSDL parse it, I found the following: This XSD snippet does not parse:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="urn:foo:xml:ns:importtest" xmlns:tns="urn:foo:xml:ns:importtest" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"> <xsd:complexType name="type2"> <xsd:sequence> <xsd:element name="dog1" type="xsd:string"/> <xsd:element name="age" type="xsd:int"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="type3"> <xsd:complexContent> <xsd:extension base="tns:type2"/> </xsd:complexContent> </xsd:complexType> </xsd:schema>
...while this does:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="urn:foo:xml:ns:importtest" xmlns:tns="urn:foo:xml:ns:importtest" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"> <xsd:complexType name="type2"> <xsd:sequence> <xsd:element name="dog1" type="xsd:string"/> <xsd:element name="age" type="xsd:int"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="type3> <xsd:complexContent> <xsd:extension base="tns:type2"/> <xsd:sequence/> </xsd:complexContent> </xsd:complexType> </xsd:schema>
(Note the addition of the <xsd:sequence> placeholder in the second example). Is SOAP::WSDL's behavior correct here? Thanks, Noah
Direct Responses: 7681 | Write a response
Posted on 2008-04-16 06:19:03-07 by mkutter in response to 7680
Re: General WSDL question
Hi Noah,
this is a bug.
I opened a bug report at www.sourceforge.net: [ 1943667 ] Error parsing complexType/extension
Thanks for reporting,
Martin
Direct Responses: Write a response