"HTTP Error: Couldn't open socket connection to server http" in PHP
<p>I want to say thanks for your support in advance. I am trying to consume a web service which written in ASP.Net using PHP. When I run the code i got this error :-
HTTP Error: Couldn't open socket connection to server <a href="http://office-server/tempPlace/Service.asmx" rel="nofollow">http://office-server/tempPlace/Service.asmx</a>, Error (10272051):</p>

<p>Can anyone help me out thanks, this is the code that i wrote:</p>

<pre><code>&lt;?php
require_once('nusoap/lib/nusoap.php');
$client = new nusoap_client('http://www.aaa.org/tempPlace/Service.asmx?wsdl','wsdl');
$err = $client-&gt;getError(); 

if($err){ 
    echo $err; 
} 

$params = array('userName' ='edit', 'password' = 'edit'); 
$result = $client-&gt;call('GetLastVersion',$params); 

if ($client-&gt;fault) { 
    echo 'Fault'. print_r($result); 
} else { 
    // Check for errors 
    $err = $client-&gt;getError(); 
    if ($err) { 
        // Display the error 
        echo 'Error'. $err; 
    } else { 
        // Display the result 
        echo 'Result' . print_r($result);       
    } 
} 
?&gt;
</code></pre>
