cd \Python27\Scripts
pip install soaplib
pip install suds
测试 手机号码 ws_client.py
import suds
url = 'http://www.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl'
client = suds.client.Client(url)
print client
result = client.service.getMobileCodeInfo('test mobile') # 手机号码
print result
print client.last_received()
本文介绍如何利用Python的suds库来调用一个获取手机号信息的WebService。文中通过安装必要的包并提供了一段示例代码,展示了如何连接到指定的WebService URL并使用一个测试手机号查询相关信息。

1829

被折叠的 条评论
为什么被折叠?



