title: PHP Soap - Could not connect to host
body: <p>I have looked at other solutions for this but can't find a similar issue:</p>
  
  <p>This bit of code works ok:</p>
  
  <pre><code>$wsdlUrl = "https://pilot.prove-uru.co.uk/URUws/uru10a.asmx?wsdl";
  $client = new soapclient($wsdlUrl);
  print_r($client-&gt;__getFunctions());
  </code></pre>
  
  <p>However when I try to make a method call:</p>
  
  <pre><code>$params = array("AddressLookupUK" =&gt; array("address" =&gt; array("Postcode" =&gt; "NE20 9RF"),
              'AccountName' =&gt; "xxxx",
              'Password' =&gt; "xxxx"));
  $result = $client-&gt;AddressLookupUK($params);
  </code></pre>
  
  <p>I get the error message "SoapFault exception: [HTTP] Could not connect to host".  If I change the method call to </p>
  
  <pre><code>$result = $client-&gt;FalseMethod($params);
  </code></pre>
  
  <p>I get back "Function ("FalseMethod") is not a valid method for this service" which shows it is connecting as expected.  Does anybody have any pointers I can try?</p>
  
  <p>Thanks</p>