Page 1 of 1

SoapClient doesn't return SoapFaults

Posted: Tue Dec 23, 2008 11:21 am
by iamkoby222
Hi there!

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));
    }
 
It always returns:
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.

Re: SoapClient doesn't return SoapFaults

Posted: Wed Dec 24, 2008 1:24 am
by iamkoby222
no one?
please