python调webservice和COM接口

调webservice

# -*- coding: cp936 -*-

from suds.client import Client
url = 'http://192.168.50.165/portal/remoting/ERMClientService?wsdl'
client = Client(url)
print client
proxy = client.service
result = proxy.getUserByUserName('admin').encode('gbk')
print result

调COM

from win32com.client import Dispatch
fm = Dispatch("PeraFileManage.FileManage")
#fm.SaveFile("d:\\123.txt", "asdfadsfa")
#print(fm.SelectFile())
print(fm.SelectDir())
上一篇:[matlab]改变矩阵的大小并保存到txt文件


下一篇:drupal 8 之 calendar模块