TypeNotFound: Type not found: (schema, http://www.w3.org/2001/XMLSchema, )

半腔热情 提交于 2019-12-24 12:45:35

问题


I've read and tried the other solutions I've seen posted, but despite this I can't seem to get this to work. I have the following code:

imp = Import('http://www.w3.org/2001/XMLSchema', 
location='http://www.w3.org/2001/XMLSchema.xsd')
imp.filter.add(['http://microsoft.com/wsdl/types/','http://tempuri.org/', 'http://tempuri.org'])  # the schema to import into.
d = ImportDoctor(imp)
client = Client(url='https://apitest.integrapay.com.au/PayLinkService.svc?singleWsdl', username='user', password='password', doctor=d)

And I get the error:

TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )'

I'm sure it's something simple, thanks for the help, I am using suds 0.4.1.

来源:https://stackoverflow.com/questions/33611461/typenotfound-type-not-found-schema-http-www-w3-org-2001-xmlschema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!