简体   繁体   中英

Python Zeep Client request throws error in xml exception

When I run the following code, I keep getting the following error: here is an error in XML document (113, 25). ---> The string '' is not a valid Boolean value. here is an error in XML document (113, 25). ---> The string '' is not a valid Boolean value. I do not understand why this is happening. Here is the documentation and according to it the boolean fields are not required.

from zeep import Client

client = Client('http://services.resumeparsing.com/ResumeService.asmx?wsdl')
response = client.service.ParseResume(request={'AccountId': 'XXXXXXX',\
    'ServiceKey':'XXXXXXXXX',\
    'FileBytes': file_bytes, 'FileText': file_text, \
    })
print(response)

Any help will be appreciated!

Author of zeep here; which version are you using? It seems that zeep generates XML which is not valid according to the server.

You can see which XML is sent by enabling the debug log level, see http://docs.python-zeep.org/en/latest/transport.html#debugging

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM