Skip to content

Zeep setting defined valuesas 'NotSet' #991

Description

@elmorek

Hi, I am experience the following behavior:

def getDeviceDetail(client=None, auth=None, dbid=None): from lxml import etree component = dict({'type':'device', 'dbid':dbid}) print(component) node = client.create_message(client.service, 'detailQuery', auth=auth, component=component) print(etree.tostring(node, encoding="unicode", pretty_print=True)) r = client.service.detailQuery(auth=auth, component=component)

getDeviceDetail(client=client, auth=creds, dbid=1234)

The output is as follows:

print(component): {'type': 'device', 'dbid': 1234}
print(etree.tostring(node, encoding="unicode", pretty_print=True)):
(Skipping the rest of the output) <component type="NotSet" dbid="NotSet"/>

zeep version is 3.4.0
Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions