[英]SOAP-ERROR: Parsing WSDL: Couldn't load from http://demo.tuleap.com
$soap_option = array(
'cache_wsdl' => WSDL_CACHE_NONE,
'exceptions' => 1,
'trace' => 1
);
$client_login = new SoapClient($host_login, $soap_option);
$session_hash = $client_login->login($userName,$password)->session_hash;
$client_tracker = new SoapClient($host_tracker, $soap_option);
The connection was successful the first time, but it fails if I try one more time. 第一次连接成功,但是如果再尝试一次则连接失败。
The below steps are helped me to resolve. 以下步骤可帮助我解决。 Step 1: Replace the second argument of a constructor SoapClient as
步骤1:将构造函数SoapClient的第二个参数替换为
$soap_option = array(
'cache_wsdl' => WSDL_CACHE_DISK,
'exceptions' => 1,
'trace' => 1
);
Step:2 clear the files in /tmp directory Step3: Restart the server Step4: Run the file on browser Note: ini_set("soap.wsdl_cache_enabled", 0); 步骤2:清除/ tmp目录中的文件步骤3:重新启动服务器步骤4:在浏览器上运行文件注意:ini_set(“ soap.wsdl_cache_enabled”,0); This line should be called before create instance for SoapClient
在为SoapClient创建实例之前应调用此行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.