python未找到泡沫类型:找不到类型:'(。。。,网址:http://w3.org/, )'

2024-10-04 11:25:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试连接到http://vipmember.tmtd.cpc.com.tw/CPCSTN/STNWebService.asmx?wsdl,并使用了以下代码:

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://tmtd.cpc.com.tw/getCityStation')

url="http://vipmember.tmtd.cpc.com.tw/CPCSTN/STNWebService.asmx?wsdl"
client = Client(url,doctor=ImportDoctor(imp))

print(client)

但它抛出了一个错误:

^{pr2}$

这两个问题中的一个(或两个)会是问题吗? 提前感谢您的任何提示。在


Tags: fromimportcomclienthttpsudswsdltw