title: PHP SoapClient Could not Connect to Host
body: <p>This is a quite awkward I hope someone can help me figure out what is happenning with me. I did a small script just toconnect to a SoapServe.  When I run it in the command line it works perfect.</p>
  
  <p>But when I try to access it through the web broswer I got a "Could not connect to host" message.</p>
  
  <p>So it's not a problem of resolving a host name as in the command line I can make it work, I think it has something related with the Apache configuration.</p>
  
  <p>My code is simple as this:</p>
  
  <pre><code>try {
  $client = new SoapClient("soap.wsdl");
  $result = $client-&gt;ccReturn($params);
  } catch (SoapFault $e) {
      print_r($e);
  }
  </code></pre>
  
  <p>I really do not know what I am doing wrong! Please help! </p>