Re: [PHP-SOAP-DEV] Custom Faults
Status: Alpha
Brought to you by:
rodif_bl
|
From: brad l. <rod...@ya...> - 2002-04-30 18:00:20
|
--- 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
|