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

prakashsharmacs24 at gmail.com prakashsharmacs24 at gmail.com
Sun Jan 20 10:43:57 EST 2019


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




More information about the Python-list mailing list