Open mnacharov opened 6 years ago
Hello, I have same problem with decode information in similar xmlpath like in problem mnach
This is good way to handle fault exceptions.
What about when we enable to receive xml response instead of dict, how do we handle fault exceptions.
client.settings(strict=False, raw_response=True) # True to skip the parsing step, so that we can get xml response
Hi folks! And Merry Christmas!
We are using zeep library to communicate with Amadeus WS (Example WSDL) for a half of the year.
Those services has an authentication system, which requires passing SessionId in the soap-env:Header. This identifier creates by special service, and each reply of other services contain Session structure as well.
So, I'ts my responsibility to send correct session id, and validate repled value.
Example Fault response:
zeep library totaly fit my needs except the fact that when Fault is raised I don't have access to soap-env:Header. So, I can't check/log that header has correct SessionId. Is it possible to have access to this data?
This script shows
__dict__
of zeep.exception.Fault