Skip to content Skip to sidebar Skip to footer

Type Not Found: '(schema, Http://www.w3.org/2001/xmlschema, )

I am using suds-client for soap wsdl services. When i try to setup the suds client for soap service, I get the Type not found error. I search everywhere. There are many unanswered

Solution 1:

I have been searching for the answer and finally I found a solution that solved my problem.

We Just need to add the missing schema to the imports of suds. Below is the code

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://tempuri.org/')
track_client = Client(TCS_TRACK_URI, doctor=ImportDoctor(imp))

Post a Comment for "Type Not Found: '(schema, Http://www.w3.org/2001/xmlschema, )"