title: SOAP-ERROR: Parsing WSDL: Couldn't load from <URL>
body: <p>In PHP: I am getting an error:</p>
  
  <blockquote>
    <p>SOAP-ERROR: Parsing WSDL: Couldn't load from '<a href="http://xxx.xxxx.asmx?WSDL" rel="nofollow noreferrer">http://xxx.xxxx.asmx?WSDL</a>' : 
        failed to load external entity "<a href="http://xxx.xxxx.asmx?WSDL" rel="nofollow noreferrer">http://xxx.xxxx.asmx?WSDL</a>"</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>&lt;?php
  header('Content-Type: text/plain');
  if (!class_exists('SoapClient')) {
      die ("You haven't installed the PHP-Soap module.");
  }
  
  ini_set('max_execution_time', 1);
  try {
      $options = array(
          'soap_version' =&gt; SOAP_1_2,
          'exceptions'   =&gt; true,
          'trace'        =&gt; 1,
          'cache_wsdl'   =&gt; WSDL_CACHE_NONE
      );
      $client = new SoapClient('http://xxx.xxxx.asmx?WSDL', $options);
      // Note where 'CreateIncident' and 'request' tags are in the XML
      $results = $client-&gt;CreateIncident(
          array(
              'FirstName'         =&gt; 'gyaan',
              'LastName'          =&gt; 'p',
              'Email'             =&gt; 'aa@gmail.com',
              'QueryProductClass' =&gt; 'QueryProductClass',
              'ChannelCode'       =&gt; 12,
              'CampaignCode'      =&gt; 234,
              'Lob'               =&gt; 'Lob',
              'PackageName'       =&gt; 'SEONI',
              'PackageCode'       =&gt; 'SMP',
              'TravelYear'        =&gt; 2012,
              'TravelMonth'       =&gt; 06,
              'TravelDay'         =&gt; 29,
              'CityOfResidence'   =&gt; 'Jabalpur',
              'ncidentNotes'      =&gt; 'testing ignor this',
              'MobilePhone'       =&gt; '1234567890',
              'DepartureCity'     =&gt; 'bangalore',
              'NoOfDaysTravel'    =&gt; '3 Days',
              'VendorName'        =&gt; 'TEST HIQ'
          )
      );
  }
  catch (Exception $e) {
      echo "&lt;h2&gt;Exception Error!&lt;/h2&gt;";
      echo $e-&gt;getMessage();
  }
  ?&gt;
  </code></pre>
  
  <p>Please tell me where i am making mistake 
  i am new in WSDL and soap </p>