My code is as follows:
Code: Select all
$params = array('Var1'=>1);
$client = new SoapClient("ImageService.wsdl", array('exceptions'=>false));
$soap = $client->processItem($params);
if (!is_soap_fault($soap)){
$result = $soap->processItemResult;
die(var_dump($result));
}
string(93) "No connection could be made because the target machine actively refused it 67.225.177.20:7979"
If I turn 'exceptions' to true, it still has the exact same result.
Why does this happen? Isn't a failure in soap connection should return an exception?
Thanks.