osdir.com


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

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


On Sunday, January 20, 2019 at 9:12:10 PM UTC+5:30, prakashs... 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:
> 
> https://stackoverflow.com/questions/4719854/soap-suds-and-the-dreaded-schema-type-not-found-error
> 
> https://stackoverflow.com/questions/25721035/type-not-found-wsdl-python-suds-client-suds-typenotfound