title: SOAP WSDL Parsing Error
body: <p>I am having some trouble setting up a SoapClient with PHP.  It seems the problem I am having is a relatively common one, but I have yet to find a suitable solution.  I am using the following code to connect:</p>
  
  <pre><code>    $varIDs = array();
      $varIDs[0] = '2147483732';
  
  
      try{
          $client = new SoapClient("../../../../ASP/webservice1.asmx?WSDL");
      } catch (Exception $e) {
          echo $e . '&lt;br&gt;';
      }
  </code></pre>
  
  <p>I am getting the standard errors, listed below, about not being able to load the WSDL file.</p>
  
  <pre><code>[07-Aug-2012 12:11:17] PHP Warning:  SoapClient::SoapClient() [&lt;a href='soapclient.soapclient'&gt;soapclient.soapclient&lt;/a&gt;]: I/O warning : failed to load external entity &amp;quot;../../../../ASP/webservice1.asmx?WSDL&amp;quot; in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\php\utils\getISOxml.php on line 7
  [07-Aug-2012 12:11:17] PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from '../../../../ASP/webservice1.asmx?WSDL' in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\php\utils\getISOxml.php on line 7
  </code></pre>
  
  <p>I'm not sure what the issue is here.  When I go to the URL in a browser, I get valid XML (never worked with WSDL before, so I'm just assuming that it's valid).  Any suggestions?</p>
  
  <p>EDIT: As per the suggestion below from @Madbreaks, I tried changing the URL I was pointing to (it now reads 'http://vm0281sch/ATS/webservice2.asmx?WSDL').  At first I thought it was working, because it was taking forever to respond, but I'm not sure about that- it gives me a new error, but I'm still not getting anything.  I now get the error shown below:</p>
  
  <pre><code>[07-Aug-2012 16:16:42] PHP Warning:  SoapClient::SoapClient(http://vm0281sch/ASP/webservice1.asmx?WSDL) [&lt;a href='soapclient.soapclient'&gt;soapclient.soapclient&lt;/a&gt;]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\php\utils\getISOxml.php on line 6
  </code></pre>
  
  <p>This is followed by the errors I was getting before.  I'm not sure what happened here, but it seems that the issue is in fact related somehow to the URL I am using.</p>