用python去调用webservice时纠结了大半天,老是报错,求帮忙指导一下
今天使用python去调用webservice时纠结了大半天,老是报错,求帮忙指导一下
源码如下:
from suds.client import Client
def webservice(): #
u"""创建WebService请求"""
url = 'http://.....此处省略.asmx'
client = Client(url)
result = client.service
return result
websev = webservice()
ws = websev.SendBatchMASBySoap()
报错信息如下:
Traceback (most recent call last):
File "E:/PythonWork/cc/public/ShortMessage.py", line 23, in <module>
client = Client(url)
File "buildbdist.win-amd64eggsudsclient.py", line 112, in __init__
File "buildbdist.win-amd64eggsudsreader.py", line 152, in open
File "buildbdist.win-amd64eggsudswsdl.py", line 136, in __init__
File "buildbdist.win-amd64eggsudsreader.py", line 79, in open
File "buildbdist.win-amd64eggsudsreader.py", line 101, in download
File "buildbdist.win-amd64eggsudssaxparser.py", line 136, in parse
File "C:Python27libxmlsaxexpatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:Python27libxmlsaxxmlreader.py", line 123, in parse
self.feed(buffer)
File "C:Python27libxmlsaxexpatreader.py", line 211, in feed
self._err_handler.fatalError(exc)
File "C:Python27libxmlsaxhandler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: <unknown>:68:16: mismatched tag
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论