ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction

hieupro123

New Member
i have this simple type from an external webservice:\[code\]<xsd:element name="card_number" maxOccurs="1"minOccurs="1"><xsd:simpleType> <xsd:restriction base="tns:panType"> <xsd:pattern value="http://stackoverflow.com/d{16}"></xsd:pattern> <xsd:whiteSpace value="http://stackoverflow.com/questions/2453186/collapse"></xsd:whiteSpace> </xsd:restriction></xsd:simpleType></xsd:element>\[/code\]but whe i launch wsdl2py -b filename.wsdl i got this error:\[code\]ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction: <schema targetNamespace="https://xxxxx.yyyyy.zz/sss/"><complexType name="PaymentReq"><sequence><element name="card_number"><simpleType>\[/code\]How can i fix this? I tried to change from simpleType to compleType and wsdl2py generate python code without problem. In this way i can't be able to use card_number in my python object.Thanks for helping.
 
Top