Extending datatypes (ex xsd.DateTime) #1436
last-partizan
started this conversation in
Ideas
Replies: 2 comments
-
For now the easiest way is to update the zeep.xsd.builtins.default_types dictionary. You can override the builtin instance for the xsd:dateTime handling there. Bit hacky and not really future proof :-) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, that's better than my current solution using Plugin and parsing/replacing variable :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, this is not an issue but rather question.
I'm using soap service which expect me to use date format like this
2016-08-14T00:00:00.000+03:00
And does not accept format used by zeep. I found
zeep.xsd.DateTime
which converts values to strings, but not found a way to use it.i subclassed zeep.xsd.DateTime, and tried this:
and this is not working
so, how do i tell zeep to use my custom DateTime class?
Beta Was this translation helpful? Give feedback.
All reactions