SOAP PHP fault parsing WSDL: failed to load external entity?

前端 未结 12 1852
耶瑟儿~
耶瑟儿~ 2020-11-27 05:37

I\'m trying to run a web service using PHP & SOAP, but all I\'m getting so far is this:

(SoapFault)[2] message which states: \'SOAP-ERROR: Parsing

12条回答
  •  迷失自我
    2020-11-27 06:43

    I had the same problem, I succeeded by adding:

    new \SoapClient(URI WSDL OR NULL if non-WSDL mode, [
        'cache_wsdl' => WSDL_CACHE_NONE, 
        'proxy_host' => 'URL PROXY',
        'proxy_port' => 'PORT PROXY'
    ]);
    

    Hope this help :)

提交回复
热议问题