python使用stub模块调用wcf

对官方例子的简单解释:http://ully.iteye.com/blog/1266320



try: 
        client = Client('http://localhost:8732/AlarmCapImg.Services/AlarmService?wsdl') 
        print client  
        result = client.service.DoAlarm('23','erewr') 
    except Exception ,e: 
        print 'error' ,e

对官方例子的简单解释:http://ully.iteye.com/blog/1266320

你可能感兴趣的:(python)