Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zeep.exceptions.XMLParseError: Unexpected element #1385

Open
dkozlowski569 opened this issue Jul 11, 2023 · 1 comment
Open

zeep.exceptions.XMLParseError: Unexpected element #1385

dkozlowski569 opened this issue Jul 11, 2023 · 1 comment

Comments

@dkozlowski569
Copy link

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'

@dkozlowski569
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant