title: API resulting in Parsing WSDL: Couldn't load from
body: <p>I've been at this for the better part of 12 hours now. I keep getting connection issues. This is a non https request, though I have tried enabling the open_ssl.dll and other suggestions.</p>
  
  <p>I can view the WSDL just fine in a browser
  <a href="http://www.soapclient.com/interop/interopTest.html" rel="nofollow">http://www.soapclient.com/interop/interopTest.html</a> also returns values for me.</p>
  
  <p>my code:</p>
  
  <pre><code>&lt;?php
  
  function doWebService()
  {
         ########################################################################
         # Do some SOAP / Call a Web Service
      $soap_url = 'http://WEBSITE/WebServices/PublicAPI.asmx?WSDL';
      //$soap_url = 'x.x.x.x/WebServices/PublicAPI.asmx?WSDL';
  
         $sh_param = array(
                  'username' =&gt; 'admin_username',
                  'password' =&gt; 'admin_password');
  
          $soap_client = new SoapClient($soap_url);
  
          $test = $soap_client-&gt;Authenticate($sh_param);
  
          echo $test . "\nDone";
      /*
      try
  {
      $soap_url = 'http://WEBSITE/WebServices/PublicAPI.asmx?WSDL';
      //$soap_url = 'x.x.x.x/WebServices/PublicAPI.asmx?WSDL';
  
         $sh_param = array(
                  'username' =&gt; 'admin_username',
                  'password' =&gt; 'admin_password');
  
          $soap_client = new SoapClient($soap_url);
  
          $test = $soap_client-&gt;Authenticate($sh_param);
  
          echo $test . "\nDone";
      }
  catch (Exception $e)
  {
     echo "&lt;pre&gt;";
     print_r($e);
     echo "&lt;/pre&gt;";
     exit;
  }
  */
  }
  
  doWebService();
  ?&gt;
  </code></pre>
  
  <p>It fails on the $soap_client = new SoapClient($soap_url) line.
  I've tried changing between PHP 4.0, 5.2, 5.3. 5.4 and 6.0. None help.
  I've tried enabling</p>
  
  <pre><code>extension=php_curl.dll
  extension=php_openssl.dll
  extension=php_soap.dll
  </code></pre>
  
  <p>This is on my website using the host:
  ntchosting.com</p>
  
  <p>trying to access the API on another.</p>
  
  <p>Actual error code</p>
  
  <pre><code>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://WEBSITE.com/WebServices/PublicAPI.asmx?WSDL' : failed to load external entity "http://WEBSITE.com/WebServices/PublicAPI.asmx?WSDL" in /home/www/MY_WEBSITE.com/main_php/_test_public_api.php:13 Stack trace: #0 /home/www/MY_WEBSITE.com/main_php/_test_public_api.php(13): SoapClient-&gt;SoapClient('http://WEBSITE...') #1 /home/www/MY_WEBSITE.com/main_php/_test_public_api.php(50): doWebService() #2 {main} thrown in /home/www/MY_WEBSITE.com/main_php/_test_public_api.php on line 13
  </code></pre>
  
  <p>All I want to do is be able to use the API to retrieve data and provide a sync between what I've got and another established software. Just does not seem to be remotely easy whenever I try and get my hands wet.</p>
  
  <p>thanks,
  jc</p>