无法在特定PC上解析WSDL

时间:2019-02-26 12:08:00

标签: php soap wsdl

我正在与服务器上的WSDL文件建立连接。 昨天它工作正常,但是今天我无法连接到它并出现此错误:

  

SOAP错误:解析WSDL:无法从中加载   'https://myurl/example.asmx?WSDL':无法加载外部实体   “ https://myurl/example.asmx?WSDL

在其他PC上正常工作。

我的代码:

 //allow go through ssl key
    $sslContext = stream_context_create(['ssl' => [
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
        ]
    ]);

    //create connection with wsdl include auth
    $soapclient = new SoapClient('https://myurl/example.asmx?WSDL', [
        'stream_context' => $sslContext,
        'verify'   => false,
        'logger'   => true,
        'login'    => $login,
        'password' => $pass
        ]
    );

0 个答案:

没有答案