python-zeep
python-zeep copied to clipboard
zeep.exceptions.XMLParseError: Unexpected element
This is my first project in Python with SOAP and Zeep. I have a solid understanding of JSON/REST and have a problem and getting this error message with a SOAP API. The Platform As A Service provider in not very helpful. Any thoughts I also tried strict=False ?
zeep.exceptions.XMLParseError: Unexpected element '{http://www.vsarating.com/ws}Payee', expected '{http://www.vsarating.com/ws}Code'
More Info : Below is a portion of the response to one of your requests from this morning. The highlighted portions explain the error message you are getting.
It looks like your implementation is insisting that a 'Code' be present. Codes in TecAssured are optional and, if there is no defined Code, the element won't be present. There are details about the definition and why this is being omitted below. How to make Zeep understand this fact is out of my realm of expertise. I am not a Python programmer. Maybe the detailled explanation below will help you find an answer.
Ultimately, It may be faster to have Headstart provide Codes for the missing dealerships (38 have them, 58 don't).