Home  >  Article  >  Backend Development  >  用python的suds访问web service (soap) 服务端是php写的

用python的suds访问web service (soap) 服务端是php写的

WBOY
WBOYOriginal
2016-06-02 11:27:56937browse

soapphppythonweb service

想让一个系统可以获取另一个系统的数据。
客户端系统是python写的,服务端是用php。
python端访问

<code>import sudsurl = 'http://www.xxxx.cn/soap/Service.php?wsdl'client = suds.client.Client(url)result = client.service.afunction(param1,param2)</code>

php服务端的缓存已经关了
我每次都循环1000次 result = client.service.afunction(param1,param2)
有时第二三次就调用成功
有时几百次才成功
偶尔1000次都不成功

为什么这么不稳定 是不是有什么参数我没设置?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn