我需要帮助
当客户端想要访问服务器
中的服务时,我在使用nusoap for PHP时遇到问题错误是:
HTTP Error: socket read of headers timed out
这是我的XML可以在[http://sobath-market.com/index.wsdl.php?wsdl][1]
感谢
答案 0 :(得分:0)
对于使用nusoap的新用户,通常会出现此错误,因为默认响应时间为30秒。如果您的请求超过此执行时间,则会收到此错误,要解决此问题,请更改nusoap库中“nusoap.php”中的以下代码
socket_set_timeout( $this->fp, $response_timeout);
to
socket_set_timeout( $this->fp, 200);
我希望你能从中获得预期的解决方案。
答案 1 :(得分:0)
代替更改“ nusoap.php”文件,您可以调用构造函数,将超时作为参数传递。
import static android.support.test.espresso.matcher.ViewMatchers.withId;