RE: [PHP-SOAP-DEV] Custom Faults
Status: Alpha
Brought to you by:
rodif_bl
|
From: brad l. <rod...@ya...> - 2002-05-02 03:21:22
|
--- phpsurf <ph...@if...> wrote:
> well, it sounds good ...
> new SoapFault ("faultstring", ["faultcode", ]["faultactor", ]["details"])
I am implementing this now...
I think i will do..
new SoapFault ("faultstring", ["faultcode", ]["details", ]["faultactor"])
or
new SoapFault ("faultstring", ["details", ]["faultcode", ]["faultactor"])
What do you think...
The reason for this is i think people will use details more than they will use
actor....
>
> 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 ();
Yeah i want to do alot of stuff with zend two...
throwing faults on server and catching faults on client...
>
>
>
> -----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
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
|