I'm trying to take the first step in creating a SOAP client with SUDS, Python, and no success.
The WSDL is here: https://login.keyinvoice.com/API3_ws.php?wsdl
The code:
from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
imp = Import("http://schemas.xmlsoap.org/soap/encoding/", location="http://schemas.xmlsoap.org/soap/encoding/")
imp.filter.add("http://login.keyinvoice.com/soap/KI_API3")
client = Client("https://login.keyinvoice.com/API3_ws.php?wsdl", doctor=ImportDoctor(imp))
The error:
suds.TypeNotFound: Type not found: '(Array, http://www.w3.org/2001/XMLSchema, )'
I've tried, with no success:
- "http://www.w3.org/2001/XMLSchema" as argument in the Import class
- Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )
- https://github.com/unomena/suds/issues/2
- Zeep witch also doesn't work completely (it doesn't build the "authenticate" method).
Then I tried a Node lib, and it simply works, but I can't use it.
Is it the WSDL that is broken? Is it bad parameters to ImportDoctor? SUDS bug?
(Python 3.8.2, suds-community==0.8.5)
Thanks!