ZEEP version 3.4.0 Python 3.7.7
I'm receiving a strange " raise XMLParseError("Unexpected element %r" % elements[0].tag)" in complex.py line 204 when I simply change from "N" to "Y" for 'repsAndCerts below:
client = Client('https://gw.sam.gov/SAMWS/1.0/Entity?wsdl', transport = transport, plugins=[history])
userid = XXXXXXXX
pswd = YYYYYYYYY
DUNSNO = ZZZZZZZ
client.service.getEntities(
authenticationKey = {'userID': userid,
'password': pswd },
entitySearchCriteria = {
'DUNSNumber': DUNSNO,
},
requestedData = {'coreData': 'Y', 'repsAndCerts': 'Y'}
)
script below:
session = Session()
history = HistoryPlugin()
transport = Transport(session=session)
client = Client('https://gw.sam.gov/SAMWS/1.0/Entity?wsdl', transport = transport, plugins=[history])
userid = XXXXXXX
pswd = YYYYYYY
DUNSNO = ZZZZZZZ
client.service.getEntities(
authenticationKey = {'userID': userid,
'password': pswd },
entitySearchCriteria = {
'DUNSNumber': DUNSNO,
},
requestedData = {'coreData': 'Y', 'repsAndCerts': 'Y'}
)
output:
File "/Users/thermalneutron/opt/anaconda3/lib/python3.7/site-packages/zeep/xsd/types/complex.py", line 204, in parse_xmlelement raise XMLParseError("Unexpected element %r" % elements[0].tag)
XMLParseError: Unexpected element 'businessObject'
anyone familiar with this?
strict=Falsefor client.settings ?? - Tarique