You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use the wsdl2py to generate client code from a wsdl file. The code generated has name+'.TheClassName' instead of the actual name in the class declerations:
class TLOGenericSearchInput(__name__ + '.TLORequestInput'):
INHERITANCE = xsd.Inheritance.EXTENSION
INDICATOR = xsd.Sequence
MaximumAddresses = xsd.Element(__name__ + '.String', minOccurs=0)
Name = xsd.Element(__name__ + '.NameBase', minOccurs=0
Address = xsd.Element(__name__ + '.AddressBase', minOccurs=0)
FilingNumber = xsd.Element(__name__ + '.String', minOccurs=0)
SSN = xsd.Element(__name__ + '.String', minOccurs=0)
FullName = xsd.Element(__name__ + '.String', minOccurs=0)
DateOfBirth = xsd.Element(__name__ + '.Date', minOccurs=0)
BusinessName = xsd.Element(__name__ + '.String', minOccurs=0)```
Attached is the wsdl and result it generates with python 3.5.
[wsdl_and_code.zip](https://github.com/soapteam/soapfish/files/999122/wsdl_and_code.zip)
The text was updated successfully, but these errors were encountered:
We have a reordering strategy to avoid this situation, but your case is not handled properly.
xsd2py._reorder_complexTypes put types with extensions/restrictions before the other types, but your WSDL the TLORequestInput and TLOGenericSearchInput have extensions.
I'll try to improve this reordering to fix this problem.
The issue here is the restriction use the namespace <xs:extension base="s0:TLORequestInput"> and I don't know how to get the namespace information. If I'm able to order based on ("http://tlo.com/", "TLORequestInput"), it'd be an easy patch.
I'm attempting to use the wsdl2py to generate client code from a wsdl file. The code generated has name+'.TheClassName' instead of the actual name in the class declerations:
The text was updated successfully, but these errors were encountered: