Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm only using the zeep library to parse WSDL files, so I don't use it as a real SOAP Client.
I need this to map it against own datamodels. However, I can't figure out if zeep handles restrictions in simpleTypes. The Type 'RollenEnum' is after parsing a 'String' BuiltinType. This is good in the first place. But I also need to map the restrictions like Enums and so on. Doesn't zeep support this or do I miss something?
I also tried to create Objects of this Type where I was able to input other Values than defined in the Enumeration.
Another example would be this:
Again, if I create a Type of 'someType' like so:
So again my Question: Do I miss something or is this just not supported?
Thank you very much in advance for the help!
I've got the same problem.
The problem here seems to be, that the SchemaVisitor is reading the base of the restriction and returns and does not consume the children of the restriction tag. Here, handlers for the different restriction types need to be implemented.
Additionally, for creating WebServices, an API would be required to properly define such restrictions
@mvantellingen To what extent could pre-existing XSD validation libraries be used to simplify the task of implementation here? I'm not familiar with any, just wondering out loud ;). Would be great if zeep could become capable of (close to) full XSD validation support combined with its already great type inspection.
+1 for this issue