Closed divick closed 5 years ago
@plq I am happy to contribute to a model generator from wsdl for spyne but I am facing some issues with generation of models as listed above. I will be happy to contribute the code for generator.
Hey,
Thanks for the offer, but this error is coming directly from libxml. It is essentially saying that the Xml Schema standard doesn't allow lone XmlData entries in a ComplexModel subclass. If you think this is an error, you must complain to the Xml Schema working group.
Note that this error has nothing to do with the WSDL standard. WSDL uses Xml Schema for object definitions and tries to fill other gaps in the domain of service discovery.
If you want to contribute to other areas of Spyne, have a look at other issues in the issue tracker. Eg. issue #616 is a good start.
Best,
Here is a sample test which reproduces the error with master branch and with python3 .
spyne complains with error:
Generated schema is:
My goal is to have a tag inside CreditLmt which looks like this:
<tns:currency code="826">10.0</tns:currency>