Open tlc28 opened 3 years ago
I'm also getting zeep.exceptions.ValidationError: Missing element for Any
. when the client is passing array of strings to the function to send to SOAP server.
The same wsdl and function works fine using python2 and SOAPpy; also works fine using perl and SOAP::Lite
Any tips on how to troubleshoot or debug this?
Hello guys, have you found any solutions at this point in python3 ?
Hi @madushanTHAMB
No! I'm a bit ashamed to write it, but… I stopped using Zeep (for the time being) and wrote a wrapper that uses Sympa's SOAP API client written in… Perl!
I had the same problem and I found the solution be analysing Zeep library code and docs: https://docs.python-zeep.org/en/master/datastructures.html
If you want to send parameter with multiple values, instead of structure like this:
items=[
{'id': 1, 'name': 'abc1'},
{'id': 2, 'name': 'abc2'},
]
Try:
items=[`
{'_value_1':
[
{'id': 1, 'name': 'ok abc1', 'description':'xyz1'},
{'id': 2, 'name': 'ok abc2', 'description':'xyz2'},
]
},
]
then you can use parameter: request_data request_data['items']=items (...) and send with Zeep API.
Hi,
Disclaimer: I'm new to Zeep and to SOAP in general.
This being said, I'm trying to consume Sympa's SOAP API using Zeep 4.1.0. It's a private Sympa instance so you cannot really test it, but anyway, this is the script I use:
This returns an array of list, which is exactly what I'm expecting.
The error occurs when I try to use a different operation, namely
review
:The error is (I've added 3 print statements that display the "from…"):
When I run
python -m zeep https://sympa.DOMAIN.TLD/sympa/wsdl
, I get:Any help welcome! Thanks for your time!
-- Tanguy