osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error while using suds: suds.TypeNotFound: Type not found


On 2019-01-20 15:41, prakashsharmacs24 at gmail.com wrote:
> 
> 
> I want to consume the web services described in the following:
> 
> https://login.keyinvoice.com/API3_ws.php?wsdl
> 
> I am using python 3.5.x and suds version 0.6. What I tried 1
> 
> from suds.client import Client
> url = 'https://login.keyinvoice.com/API3_ws.php?wsdl'
> client = Client(url)
> 
> Error:
> 
> suds.TypeNotFound: Type not found: '(Array, http://www.w3.org/2001/XMLSchema, )'
> 
> What I tried 2
> 
> from suds.client import Client
> from suds.xsd.doctor import Import, ImportDoctor
> imp = Import('http://www.w3.org/2001/XMLSchema',
>      location='http://www.w3.org/2001/XMLSchema.xsd')
> imp.filter.add('http://login.keyinvoice.com/soap/KI_API3')
> client = Client(url, doctor=ImportDoctor(imp))
> 
> Error:
> 
> suds.TypeNotFound: Type not found: '(Array, http://www.w3.org/2001/XMLSchema, )'
> 
> Already visited these URL:
> 
> SOAP suds and the dreaded schema Type Not Found error
> 
> Type not found wsdl python suds client - suds.TypeNotFound
> python suds
> 
Have you tried:

https://www.w3.org/2001/XMLSchema

instead? ("https" instead of "http")