import suds url='http://10.87.0.19:8080/APL-SMSService/SMSService?wsdl' client = suds.client.Client(url) service = client.service print client result = service.sendSms(201312291,'F8B7AFFDCE88AA3F','15868489464','test',20131229111649) print result
print client 结果如下:
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913
Service ( SMSService ) tns="http://ws.sms.zjapl.com"
Prefixes (1)
ns0 = "http://ws.sms.zjapl.com"
Ports (1):
(SMSWebServicePort)
Methods (1):
sendSms(xs:long id, xs:string appKey, xs:string phoneNums, xs:string content, xs:long time, )
Types (2):
sendSms
sendSmsResponse
print result 结果如下:
1