Web service Calling is not working in PHP
<p>I  was trying to call a  Agemni web service, </p>

<p><a href="https://www.agemni.com/AgemniWebservices/service1.asmx" rel="nofollow">https://www.agemni.com/AgemniWebservices/service1.asmx</a><br>
and web service protocol is located at
<a href="https://www.agemni.com/AgemniWebservices/service1.asmx?WSDL" rel="nofollow">https://www.agemni.com/AgemniWebservices/service1.asmx?WSDL</a>  </p>

<p>Following is the example code (in vb.net) for calling the web service functions</p>

<pre><code>Dim keys(7) As String                                 

Dim values(7) As Object                                 

keys(0) = "phone"                                 

values(0) = "8013102325"                                 

keys(1) = "fname"                                 

values(1) = "TEST"                                 

keys(2) = "lname"                                 

values(2) = "TESTF"                                 

keys(3) = "area id"                                 

values(3) = "1"                                 

keys(4) = "lead id"                                 

values(4) = "1"                                 

keys(5) = "contactdate"                                 

values(5) = "2/10/2007"                                 



ex = DSWS.ValidateEntity("username", "password", "companyname", 2, keys, values)                                 

ex = DSWS.CreateEntity("username ", " password ", "companyname", 2, keys, values)  
</code></pre>

<p>And it works correctly and new lead is created in Agemni account</p>

<p>Now i want to do the same in PHP and following is my code</p>

<pre><code>require_once('nusoap/lib/nusoap.php');

// Create the client instance        
 $client = new nusoap_client('https://www.agemni.com/AgemniWebservice/service1.asmx?WSDL', true);

// Check for an error        
        $err = $client-&gt;getError();
        if ($err) {
                // Display the error
                echo '&lt;h2&gt;Constructor error&lt;/h2&gt;&lt;pre&gt;' . $err . '&lt;/pre&gt;';
                // At this point, you know the call that follows will fail
        }

    $keys[0] = 'phone';
    $keys[1] = 'fname';
    $keys[2] = 'lname';
    $keys[3] = 'area id';
    $keys[4] = 'lead id';
    $keys[5] = 'contactdate';


    $values[0] = '8013102325';
    $values[1] = 'TEST';
    $values[2] = 'TESTFF';
    $values[3] = 1;
    $values[4] = 1;
    $values[5] = '3/20/2012';



  $inputs = array("username","password","companyname",2,$keys,$values);  

        $error_text = "";

              if($inputs){  
                  // Call the SOAP method                
              //echo "start"; 
              $client-&gt;call('ValidateEntity', $inputs);
              $client-&gt;call('CreateEntity', $inputs);
              }else{
                  $error_text = "Invalid Address";
              }    



echo $client-&gt;response;
</code></pre>

<p>But it not working,Let me know, whats the wrong i am doing ?
Note : I have already enabled curl in server</p>
