未捕获的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);