ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction

Posted by diegor on Stack Overflow See other posts from Stack Overflow or by diegor
Published on 2010-03-16T09:26:02Z Indexed on 2010/03/16 10:16 UTC
Read the original article Hit count: 385

Filed under:
|
|
|

Hi guys, i have this simple type from an external webservice:

<xsd:element name="card_number" maxOccurs="1"
minOccurs="1">
<xsd:simpleType>
    <xsd:restriction base="tns:PanType">
        <xsd:pattern value="\d{16}"></xsd:pattern>
        <xsd:whiteSpace value="collapse"></xsd:whiteSpace>
    </xsd:restriction>
</xsd:simpleType>
</xsd:element>

but whe i launch wsdl2py -b filename.wsdl i got this error:

ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction: <schema targetNamespace="https://xxxxx.yyyyy.zz/sss/"><complexType name="PaymentReq"><sequence><element name="card_number"><simpleType>

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.

© Stack Overflow or respective owner

Related posts about python

Related posts about zsi