osdir.com


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

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


prakashsharmacs24 at gmail.com writes:
> ...
> 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, )'

"TypeNotFound" typically indicates a WSDL error, more precisely
an error in the XML schema part of the WSDL (defining the used
types). It means that a type is referenced which "suds" cannot
find.

In the above case, "suds" has not found the type "Array"
in the XML schema specified by "http://www.w3.org/2001/XMLSchema";.
"https://www.w3.org/TR/xmlschema-2/#datatype-components";
is the specification for "http://www.w3.org/2001/XMLSchema";
and indeed, it does not mention a type "Array".
Thus, "suds" seems to be correct in not finding the type.