SoapClient doesn't return SoapFaults

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
iamkoby222
Forum Newbie
Posts: 2
Joined: Tue Dec 23, 2008 11:13 am

SoapClient doesn't return SoapFaults

Post 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.
iamkoby222
Forum Newbie
Posts: 2
Joined: Tue Dec 23, 2008 11:13 am

Re: SoapClient doesn't return SoapFaults

Post by iamkoby222 »

no one?
please
Post Reply