mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.88k stars 586 forks source link

Invalid tag name #1231

Open freenetwork opened 3 years ago

freenetwork commented 3 years ago

1) Name: zeep Version: 4.0.0 2) ArcSight ESM SOAP API 3) https://gist.github.com/freenetwork/5bc84d98fc85067c83b27408942127e6.

After the Client is created, I get the following error File "src\lxml\etree.pyx", line 1831, in lxml.etree.QName.__init__ File "src\lxml\apihelpers.pxi", line 1734, in lxml.etree._tagValidOrRaise ValueError: Invalid tag name 'Resource$SubType'

Please how to create mock.patch for tag?

yurj commented 3 years ago

the link to the gist point to https://github.com/mvantellingen/python-zeep/issues/WDSL instead of https://gist.github.com/freenetwork/5bc84d98fc85067c83b27408942127e6

$ is not a valid character in a xml tag name, so change them.