Open pjuvigny-oef opened 1 year ago
What code are you using, according to the error you are not passing the correct parameters, these are in wsdl.
Something like:
client = zeep.Client(os.path.join(os.path.dirname(__file__), "wsdl", self.wsdl_path))
service = client.create_service(self.method_binding, self.endpoint_url)
service.operation(...)
The real life problem is coming from a validation failing on a perfectly fine WSDL response from the server (the SOAP endpoint is provided by a state company, highly used and tested).
The workaround is off course to add:
zeep_settings = zeep.Settings(strict=False)
But I would rather not.
Hi, the XSD validation seems to fail on
sequence
withinchoice
, when deserializing a webservice response (zeep 4.1.0).The XSD:
First problem: With a response that only have
choice2
:I've got a error saying
Unexpected element 'choice2', expected 'choice1_seq1'
Second problem:
Validates (it should throw
Element 'test': Missing child element(s). Expected is one of ( choice1_seq1, choice2 ).
)Sorry for the lack of testable script :/.