Hi All
I am a newbie in webservices i would like to know how to connect to webservice using php
<?php
include("webservclass.php");
$BCIContext = new SoapClient("http://localhost/bwebservices/bwebservices.asmx?wsdl=0", array('proxy_host' => "localhost",
'proxy_port' => 3306,
'proxy_login' => "bserver",
'proxy_password' => "helpuser"));
$lcs = $BCIContext->getSenderDetailsRecord();
print_r($BCIContext->getSenderDetailsRecord());
$count = count($lcs);
print "There are $count SenderDetailsRecord on this server:<br/>";
print "<table><tr><th>Name</th><th>Details</th></tr>";
foreach($lcs as $lc)
{
print "<tr><td>" . $lc->senderNames . "</td><td>" . $lc->glcID . "</td></tr>";
}
print "</table>";
?>
I am getting this error , what am i doing wrong cause the username and password is correct
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /var/www/test/test.php:14 Stack trace: #0 [internal function]: SoapClient->doRequest('<?xml version="...', 'http://192.168....', 'http://bciwebse...', 1, 0) #1 [internal function]: SoapClient->call('getSenderDetail...', Array) #2 /var/www/test/test.php(14): SoapClient->getSenderDetailsRecord() #3 {main} thrown in /var/www/test/test.php on line 14