我是Python新手并尝试使用WSDL生成数据。
Service ( DataFeedService ) tns="http://XXXXXXXXXXXXXXX"
Prefixes (2)
ns0 = "http://rpc.xml.coldfusion"
ns1 = "http://schemas.xmlsoap.org/soap/encoding/"
Ports (1):
(datafeed.cfc)
Methods (2):
SalesDetail(xs:double Page, xs:double RecPP, xs:string EventGUID, xs:string LastUpdated, xs:boolean IncludeSurvey, xs:string SurveyKey, )
SalesDetailJSON(xs:string EventGUID, xs:string LastUpdated, xs:string NoFinancials, )
Types (49):
...........
我使用了print client中的一种方法:
if(location.hash.indexOf('#')===0) {
location.href = location.hash.replace('#','')
}
我的目标是每小时转换和存储XML。任何帮助将不胜感激!
答案 0 :(得分:0)
您需要先设置一个looger以获取此消息。看看https://fedorahosted.org/suds/wiki/Documentation#LOGGING和 https://docs.python.org/2/library/logging.html(或https://docs.python.org/3/library/logging.html,具体取决于您的python版本)。但是这样的事情应该可以解决问题:
>>> import logging
>>> from suds.client import Client
>>> logger = logging.getLogger('suds.client').setLevel(logging.DEBUG)
>>> logger.setLevel(logging.DEBUG)
>>> # ...