RE: [PHP-SOAP-DEV] Custom Faults
Status: Alpha
Brought to you by:
rodif_bl
|
From: phpsurf <ph...@if...> - 2002-04-30 18:24:54
|
well, it sounds good ...
new SoapFault ("faultstring", ["faultcode", ]["faultactor", ]["details"])
but maybe, you could take advantage from waiting for the new exception
system in ZendEngine2 ...
then, we could have several exception classes, extending SoapFault ...
class MySoapException extends SoapFault {
var $faultcode = "MYAPP:MyCode";
...
}
and then in you soap method:
throw new MySoapException ();
-----Original Message-----
From: brad lafountain [mailto:rod...@ya...]
Sent: mardi 30 avril 2002 20:00
To: phpsurf; php...@li...
Subject: Re: [PHP-SOAP-DEV] Custom Faults
--- phpsurf <ph...@if...> wrote:
> Hi
>
> just a quick question :
> is it possible to throw custom faults on the soap server side ?
>
> the native PHP errors handling is really great ... everything works
without
> having to handle anything !
> but what if I want to qualify the different types of errors and assign
them
> different FaultCodes ?
Currently there is no way of doing this. I do have a SoapFault class. I
wanted
to intergrate that on the server side so you could do what you are talking
about.
How would you suggest the fault code return look.
function do_something()
{
if(some_status)
return string;
else
return new SoapFault("code", "details");
}
- brad
>
> thx
>
>
>
____________________________________________________________________________
__
> ifrance.com, l'email gratuit le plus complet de l'Internet !
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> http://www.ifrance.com/_reloc/email.emailif
>
>
>
> _______________________________________________
> Phpsoaptoolkit-development mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
|