extending exception from SoapFault. WSDL

649 Views Asked by At

it possible ?

e.g.:

Server:

class Service
{
    public function methodCall()
    {
        ...
        throw new ExceptionEtc(...);
        ...
    }
}

custom exception:

class ExceptionEtc extends SoapFault
{
    // ...
}

Client:

try{
   ...
    $client->methodCall();
}
catch(ExceptionEtc $e){
    // !
}

all exceptions are of SoapFault type (object(SoapFault)). Needed custom type (ExceptionEtc., etc.). How to do that ? What add to WSDL scheme ? if it is possible for php, please give an simple example with wsdl scheme.

0

There are 0 best solutions below