Php SoapFault异常:[WSDL]SOAP-ERROR:解析WSDL:cand';t从

Php SoapFault异常:[WSDL]SOAP-ERROR:解析WSDL:cand';t从,php,soap,wsdl,plesk,Php,Soap,Wsdl,Plesk,使用Plesk 12.5和PHP 7.0.2,我得到了以下错误: SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://<IP ADDRESS>:9443/Configuration?wsdl' : failed to load external entity "https://<IP ADDRESS>:9443/Configuration?wsdl" in &l

使用Plesk 12.5和PHP 7.0.2,我得到了以下错误:

SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://<IP ADDRESS>:9443/Configuration?wsdl' : failed to load external entity "https://<IP ADDRESS>:9443/Configuration?wsdl" in <PHP FILE>:51 Stack trace: #0 <PHP FILE>(51): SoapClient->SoapClient('https://<IP FILE>', Array) #1 

尝试使用curl调试您的连接:

curl -v --user "<login>:<password>" --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:<action>" --data @<file_name> <url_of_the_soap_web_service>
curl-v--user:“--header”内容类型:text/xml;charset=UTF-8”--header“SOAPAction:”--data@

尝试使用curl调试连接:

curl -v --user "<login>:<password>" --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:<action>" --data @<file_name> <url_of_the_soap_web_service>
curl-v--user:“--header”内容类型:text/xml;charset=UTF-8”--header“SOAPAction:”--data@

通过流上下文选项解析。我的代码现在如下所示:

                $context = stream_context_create(array(
                    'ssl' => array('verify_peer' => false, 'verify_peer_name'=>false, 'allow_self_signed' => true)
                ));

                try {
                $configClient = new soapclient("https://{$node["host"]}:{$node["port"]}/Configuration?wsdl",
                        array('login'   => $node["user"],
                        'password'      => $node["pass"],
                        'trace'         => 1,
                        'cache_wsdl'    => WSDL_CACHE_NONE,
                        'features'      => SOAP_SINGLE_ELEMENT_ARRAYS,
                        'stream_context' => $context
                        )
                );

                $configResponse = $configClient->enableALLProductFeatures();
        } catch (SoapFault $exception) {
                echo "Problem..... : ";
                echo $exception;
        }

通过流上下文选项解析。我的代码现在如下所示:

                $context = stream_context_create(array(
                    'ssl' => array('verify_peer' => false, 'verify_peer_name'=>false, 'allow_self_signed' => true)
                ));

                try {
                $configClient = new soapclient("https://{$node["host"]}:{$node["port"]}/Configuration?wsdl",
                        array('login'   => $node["user"],
                        'password'      => $node["pass"],
                        'trace'         => 1,
                        'cache_wsdl'    => WSDL_CACHE_NONE,
                        'features'      => SOAP_SINGLE_ELEMENT_ARRAYS,
                        'stream_context' => $context
                        )
                );

                $configResponse = $configClient->enableALLProductFeatures();
        } catch (SoapFault $exception) {
                echo "Problem..... : ";
                echo $exception;
        }