// Simplest Client
$soap = new SoapClient("http://domain/service.php?wsdl", array('trace'=>1, 'excepion'=>1));
$params = array();
try {
$result = $soap->__call('doFunc', $params);
print_r($result);
}
catch (Exception $e) {
echo "Error: ".($e->getMessage());
}
Title:
php - build web service with soap extension
Description:
// Simplest Client $soap = new SoapClient("http://domain/service.php?wsdl", array('trace'=>1, 'excepion'=>1)...
...
Rating:
4