title: access web services with php
body: <p>I'm trying to access <code>webservice</code> using <code>php</code>. I'm calling a method from the services then i get an error .</p>
  
  <p>My code is below,help me sort this..</p>
  
  <pre><code>$message = $_REQUEST['message'];
  $recipient ="250788353869";//$_REQUEST['recipient'];
  $phone=(int)$recipient;
  $account="";
  $pin="";        
  ini_set("soap.wsdl_cache_enabled", "0"); // Set to zero to avoid caching WSDL
  $soapClient = new SoapClient('http://gateway.esicia.com?wsdl');     
  $result = $soapClient-&gt;ksend(array('account'=&gt;$account,'pin'=&gt;$pin,'sender'=&gt;$sender_phone,'message'=&gt;$message,'phone'=&gt;$phone));    
  print_r($result);
  </code></pre>
  
  <p>and error I get on the reply is:</p>
  
  <blockquote>
    <p>Notice: Array to string conversion in /opt/lampp/htdocs/Admin/sms/smspost.php on line 25
        Array ( [reply] => Error Invalid phone - has to be numeric [balance] => [status] => 0 )  </p>
  </blockquote>