尝试使用Python(SOAPPy)连接到SOAP/WSDL服务时出错

2024-06-10 09:10:08 发布

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

我正试图通过Python脚本连接到SOAP/WSDL服务器:

    # based on the tutorial:
    # http://www.diveintopython.net/soap_web_services/

     import pprint
     from SOAPpy import WSDL

     WSDLFILE = "https://api.comscore.com/KeyMeasures.asmx?WSDL"
     proxy = WSDL.Proxy(WSDLFILE)

    proxy.soapserver.config.dumpSOAPIn=1
    proxy.soapserver.config.dumpSOAPOut=1

运行此脚本时,出现以下错误:

^{pr2}$

我在下面的链接中查找了SOAP示例: http://users.skynet.be/pascalbotte/rcx-ws-doc/python.htm

http://code.activestate.com/recipes/502259-calling-a-web-service-using-soappy/

不过,我在别的地方找不到什么。。。。在

如果能给我指点正确的方向,我将不胜感激。在


Tags: import服务器脚本comwebconfighttpservice