警告:SoapServer :: SoapServer():I / O警告:无法在

时间:2016-06-17 09:06:27

标签: php soap wsdl

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>WSDL</faultcode>
<faultstring>
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://vmeste.uz/sites/all/modules/akfk/pruebas/soap-pruebas.wsdl' : failed to load external entity "https://vmeste.uz/sites/all/modules/akfk/pruebas/soap-pruebas.wsdl"
</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

删除网站到wds托管后,我收到此错误,一切都在旧主机上工作,但现在我无法修复此错误,我已尝试启用extension=php_openssl.dll和其他人

extension=php_curl.dll
extension=php_xmlrpc.dll   

,我在服务器主机文件中指出了这个wsdl文件,但是没有任何更改。非常感谢。我不知道了。如果需要,这是我的SoapServer代码

function _kfk_make_transaction()
{
    global $base_url;

    $path_mod = $base_url . '/' . drupal_get_path('module', 'akfk');

    $options = array(
        'soap_version' => SOAP_1_1,
        'cache_wsdl' => WSDL_CACHE_NONE
    );

     $server = new SoapServer($path_mod . '/pruebas/soap-pruebas.wsdl', $options);
    $server->setClass('MyAPI');
    $server->handle();

    die();
}

忘了在php-5.3.3的新主机版本中指出

1 个答案:

答案 0 :(得分:0)

我将php的版本增加到5.5,但它没有帮助。在我的情况下,解决方案是静态地给出wsdl文件的路径。(如果有人将面临这样的问题)