RE: [PHP-SOAP-DEV] Custom Faults
Status: Alpha
Brought to you by:
rodif_bl
|
From: phpsurf <ph...@if...> - 2002-05-04 23:51:41
|
Hi !
I'm just coming back from some days off to the beach ...
great to hear you're planning to play with ZE2 :)
I have no preference for SoapFault params order ... 'till we can still call
it
new SoapFault ("faultstring", null, "faultcode", null) or anything like that
...
> -----Original Message-----
> From: php...@li...
> [mailto:php...@li...]On Behalf
> Of brad lafountain
> Sent: jeudi 2 mai 2002 05:21
> To: phpsurf; php...@li...
> Subject: RE: [PHP-SOAP-DEV] Custom Faults
>
>
>
> --- 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
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: ban...@so...
_______________________________________________
Phpsoaptoolkit-development mailing list
Php...@li...
https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development
______________________________________________________________________________
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
|