From: Arye <ar...@bi...> - 2009-02-17 12:23:50
|
Commenting the <!--<xsd:simpleType>--> solves the problem. <!--<xsd:simpleType>--> <xsd:restriction base="MediumStringNotNull"> <xsd:enumeration value="ToysAndGames"/> <xsd:enumeration value="BabyProducts"/> </xsd:restriction> <!--</xsd:simpleType>--> On Wed, Feb 11, 2009 at 5:28 PM, Arye <ar...@bi...> wrote: > Dear list, > > I get a "ZSI.generate.Wsdl2PythonError: unsupported local simpleType > restriction" exception when running wsdl2py on a XSD with a "complexType" > definition like this: > > > <xsd:complexType> > <xsd:sequence> > <xsd:element name="BatteryType"> > <xsd:simpleType> > <xsd:restriction base="StringNotNull"> > <xsd:enumeration value="battery_type_1"/> > <xsd:enumeration value="battery_type_2"/> > <xsd:enumeration value="battery_type_3"/> > </xsd:restriction> > </xsd:simpleType> > </xsd:element> > </xsd:sequence> > </xsd:complexType> > > > The command line arguments I used were "-blx" > >\Python25\scripts\wsdl2py.exe -blx chameleon-envelope.xsd > > I am using a svn checkout from a few months ago. > > Any help on a way to make wsdl2py process these xsd restrictions would be > greatly appreciated. > > Arye. > |