簡體   English   中英

Python Zeep Client請求在xml異常中引發錯誤

[英]Python Zeep Client request throws error in xml exception

當我運行以下代碼時, 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. here is an error in XML document (113, 25). ---> The string '' is not a valid Boolean value. 我不明白為什么會這樣。 是文檔,根據該文檔,不需要布爾字段。

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)

任何幫助將不勝感激!

zeep的作者在這里; 您正在使用哪個版本? 似乎zeep根據服務器生成了無效的XML。

您可以通過啟用調試日志級別來查看發送的XML,請參閱http://docs.python-zeep.org/en/latest/transport.html#debugging

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM