python2.7 調用 .net的webservice asmx

  首先安裝pip install sudspython

  或下載:https://pypi.org/project/suds-jurko/0.6/#filespython2.7

  這個是最新版本ide

  

 

  

    

  因爲不支持python3.6, 因此只能用python2.7ui

 

 

  安裝成功後3d

  

 

  打印出blog

  

  接下來調用GetPlayListGuidWithDate和 GetPlayListDetailRecordWithPlayListGuid兩個方法ip

  result = client.service.GetPlayListGuidWithDate(monitorDate='2018-09-01')get

 print(result)

  輸出:it

  {"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"}pip

  GetPlayListDetailRecordWithPlayListGuid調用相似

相關文章
相關標籤/搜索