Skip to content

Extending datatypes (ex xsd.DateTime) #242

@last-partizan

Description

@last-partizan

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:

c = zeep.Client(wsdl)
c.client.SomeMethod(SomeMethodRequest={'DateTime': MyDateTime(dt)}

and this is not working

so, how do i tell zeep to use my custom DateTime class?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions