doulu1907 2016-08-15 19:52 采纳率: 100%
浏览 325

未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL:无法从“xxx”加载:无法加载外部实体

I've tried everything under the sun, configs disabling the SSL as some posts have suggested though I still get the same error. This is a PHP app running on windows2012 server through IIS on PHP 7.

Any idea what might be causing the error? I can access the WSDL through the webserver fine and all keys and urls are correct (I am primarily a .net dev and this PHP app has been handed to me to set up).

If you need anything else just holla.

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://developer.xxxx.com/API/1_0/SOAP/xxxxAPI.asmx?wsdl' : failed to load external entity

if($xxxinitialised!==true){
        $soapurl = "https://xxxxxx/API/1_0/SOAP/xxxxxx.asmx?wsdl";

        $apikey = "xxxxxxxxxxxxxx";


        /* Initialize webservice using WSDL address */
        $ns = "https://developer.xxxx.com/API/1_0/SOAP/";

        $opts = array('ssl' => array('ciphers'=>'RC4-SHA', 'verify_peer'=>false, 'verify_peer_name'=>false));

        $params = array ('encoding' => 'UTF-8', 'verifypeer' => false, 'verifyhost' => false, 'cache_wsdl' => WSDL_CACHE_NONE, 
                 'soap_version' => SOAP_1_1,
                 'location' => "https://developer.xxxxx.com/API/1_0/SOAP/xxxxAPI.asmx",
                 'uri' => $ns,'trace' => 1, 'exceptions' => 1, "connection_timeout" => 180, 
                 'stream_context' => stream_context_create($opts));

        $client = new SoapClient($soapurl,$params);
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 matlab有关常微分方程的问题求解决
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?
    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考