pythonsoap请求和对WEB服务的响应

2024-09-29 23:28:56 发布

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

嗨,我做谷歌搜索,我遇到了各种各样的问题,比如:

raise TypeNotFound(self.ref)

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

我需要得到回复:

http://www.tsetmc.com/WebService/TsePublicV2.asmxhttp://www.tsetmc.com/WebService/TsePublicV2.asmx?WSDL

查看此帮助: HELP 在Python 3中如何从该服务获得响应:

1: username:mgamini 2. password:123456 3. Flow:0

我错误使用的基本代码是:

from suds.xsd.doctor import ImportDoctor, Import
from suds.client import Client


url = 'http://www.tsetmc.com/WebService/TsePublicV2.asmx?WSDL'
imp = Import('http://schemas.xmlsoap.org/soap/encoding/')
imp.filter.add('http://some/namespace/A')
doctor = ImportDoctor(imp)
client = Client(url, doctor=doctor)

我得到了“

raise TypeNotFound(self.ref)

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

请帮我一下 真诚的您!!!在


Tags: orgselfcomrefhttpwwwtypesuds

热门问题