title: SOAP-ERROR: Parsing WSDL: Couldn't load from - but works on WAMP
body: <p>This works fine on my WAMP server, but doesn't work on the linux master server!?</p>
  
  <pre><code>try{
      $client = new SoapClient('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl', ['trace' =&gt; true]);
      $result = $client-&gt;checkVat([
          'countryCode' =&gt; 'DK',
          'vatNumber' =&gt; '47458714'
      ]);
      print_r($result);
  }
  catch(Exception $e){
      echo $e-&gt;getMessage();
  }
  </code></pre>
  
  <p>What am I missing here?! :(</p>
  
  <p>SOAP is enabled</p>
  
  <h1>Error</h1>
  
  <pre><code>SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' : failed to load external entity "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"/taxation_customs/vies/checkVatService.wsdl"
  </code></pre>
  
  <h1>Call the URL from PHP</h1>
  
  <p>Calling the URL from PHP returns error</p>
  
  <pre><code>$wsdl = file_get_contents('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl');
  echo $wsdl;
  </code></pre>
  
  <h1>Error</h1>
  
  <pre><code>Warning:  file_get_contents(http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable
  </code></pre>
  
  <h1>Call the URL from command line</h1>
  
  <p>Calling the URL from the linux command line <code>HTTP 200</code> is returned with a XML response</p>
  
  <pre><code>curl http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
  </code></pre>