python实现建立soap通信(调用及测试webservice接口)
实现代码如下:
#调用及测试webservice接口 import requests class SoapConnect: def get_soap(self,url,data): r = requests.post(url,data) print(r.text) if __name__ == ‘__main__‘: u = ‘http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx/getMobileCodeInfo‘ d = {‘mobileCode‘: ‘15928777426‘, ‘userID‘: ‘‘} SoapConnect().get_soap(u,d)
相关推荐
朱建伟 2019-12-14
87214156 2018-02-13
zhangyayun0 2019-06-30
幸运小侯子 2019-06-30
Adolphlwq 2015-08-13
zhyue 2015-04-16
Chydar 2019-06-30
dzwcom 2014-05-17
智能的世界 2012-12-06
AMEPRE 2013-11-08
PHP昆虫的巢穴 2011-10-06
我爱熊猫 2020-02-24
春雨的雕刻时光 2019-11-02
oldboy 2016-11-18
蜀川居 2017-10-16
fanix 2015-12-19
heshizui 2014-11-19