您好,登录后才能下订单哦!
这篇文章主要介绍使用suds调用这个函数时怎么输入callee参数,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
最近用python开发一个小项目,调用服务商提供的webservice接口(http://202.105.212.1
,使用suds调用这个函数时,如何输入callee这个参数?
import suds
url='http://202.105.212.1
client=suds.client.Client(url)
print(client)
======================print(client)===========================================
Suds ( https://fedorahosted.org/suds/ ) version: 0.4.1 jurko 3
Service ( SendSMSService ) tns="http://202.105.212.146:8080/jboss-net/services/SendSMS"
Prefixes (2)
ns0 = "http://202.105.212.146:8080/jboss-net/services/SendSMS"
ns1 = "http://schemas.xmlsoap.org/soap/encoding/"
Ports (1):
(SendSMS)
Methods (4):
qryOffLineSMS(xs:string ucNumber, xs:string ucPinNum, xs:string rand, xs:string connID)
qrySendSMSStat(xs:string ucNumber, xs:int smsFlag, xs:string ucPinNum, xs:string rand, xs:string connID)
sendSMS(xs:string uc, xs:string pw, xs:string rand, ArrayOf_xsd_string callee, xs:string isreturn, xs:string cont, xs:int msgid, xs:string connID)
sendSMSV2(xs:string uc, xs:string pw, xs:string rand,
ArrayOf_xsd_string callee, xs:string isreturn, xs:string cont, xs:int msgID, xs:string connID, xs:int charset)
Types (49):
ns1:Array
ArrayOf_xsd_string
ns1:ENTITIES
ns1:ENTITY
=========================================
答案:
刚才测试成功,
client = Client(wsdl_url)
array = client.factory.create('ns1:Array')
array.item = ['mobile1','mobile2']
将array带入参数即可。
以上是“使用suds调用这个函数时怎么输入callee参数”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。