SOAP错误:解析WSDL:无法从'https://asdf.com?wsdl'加载:无法加载外部实体“ https://asdf.com?wsdl”

时间:2019-11-26 13:42:40

标签: php soap wsdl nusoap ws

我有此代码:

     $options = array(
        'cache_wsdl' => 0,
        'trace' => 1,
        'stream_context' => stream_context_create(
            array(
                'ssl' => array(
                    'verify_peer' => false,
                    'verify_peer_name' => false,
                    'allow_self_signed' => true
                )
            )
        )
    );

    $this->client = new SoapClient("https://wsgth.gothaer.ro/services/ext-2?wsdl", $options);

我收到此错误:

  

SoapFault异常:[WSDL] SOAP错误:解析WSDL:无法从“ https://wsgth.gothaer.ro/services/ext-2?wsdl”加载:无法加载外部实体“ https://wsgth.gothaer.ro/services/ext-2?wsdl”    在C:\ Apache24 \ htdocs \ abc.php

P.S。我只能在第一次通话后收到此错误,然后才能正常工作。一段时间不活动后,它仅一次抛出我相同的错误,此后工作正常。依此类推。

P.S 2.脚本运行正常,直到我更改了ws。

0 个答案:

没有答案