python2.7 调用 .net的webservice asmx
首先安装pip install suds
或下载:https://pypi.org/project/suds-jurko/0.6/#files
这个是最新版本
由于不支持python3.6, 所以只能用python2.7
安装成功后
打印出
接下来调用GetPlayListGuidWithDate和 GetPlayListDetailRecordWithPlayListGuid两个方法
result = client.service.GetPlayListGuidWithDate(monitorDate='2018-09-01')
print(result)
输出:
{"Result":["29b601af-f534-46c7-b272-5801469aaf1c","8357616f-0cd6-4a8d-838b-264f7b26f2e9","9cc13ba8-9f4c-40f9-b019-4b885b8f4e7a","91443d34-524f-4fdd-b052-cca52777f434","fd1078b5-8e45-4ad3-8171-f0426310b5bd"],"ExeResult":true,"ErrorMessage":null,"Message":null,"ResponseTime":"2018-09-07 17:03:42.102","RequestGuid":"a0c682d9-54b6-4e3c-ba5e-d7607892626f"}
GetPlayListDetailRecordWithPlayListGuid调用类似