, чтобы решить проблему, я изменил библиотеку с zeep на https://suds -py3.readthedocs.io / en / latest / , потому что это позволяет изменить сообщение XML перед отправкой через плагин.
Я также пытался использовать доктора, чтобы добавить пространство имен безуспешно,
это код
class FixTypes(MessagePlugin):
def marshalled(self, context):
context.envelope.getChild('Body').getChild('createDocument').getChild('properties')[0].getChild('Value').set('xmlns:c','http://www.w3.org/2001/XMLSchema')
context.envelope.getChild('Body').getChild('createDocument').getChild('properties')[0].getChild('Value').set('i:type','c:boolean')
context.envelope.getChild('Body').getChild('createDocument').getChild('properties')[1].getChild('Value').set('xmlns:c','http://www.w3.org/2001/XMLSchema')
context.envelope.getChild('Body').getChild('createDocument').getChild('properties')[1].getChild('Value').set('i:type','c:boolean')
context.envelope.getChild('Body').getChild('createDocument').getChild('properties').set('xmlns:i','http://www.w3.org/2001/XMLSchema-instance')
client = Client("", username="", password="", plugins=[FixTypes()])